修复bug
This commit is contained in:
parent
88765401a1
commit
5132c9258b
|
@ -37,12 +37,10 @@ export default function Weixin({ params }) {
|
|||
//android打开微信,ios打开微信扫一扫,0:android,1:ios
|
||||
const openWechat = () => {
|
||||
if (device === 0) {
|
||||
window.open("weixin://", "_blank");
|
||||
router.push("weixin://");
|
||||
return;
|
||||
}
|
||||
var link = document.createElement("a");
|
||||
link.href = "weixin://scanqrcode";
|
||||
link.click();
|
||||
router.replace("weixin://scanqrcode");
|
||||
};
|
||||
|
||||
if (isLoading) {
|
||||
|
|
Loading…
Reference in New Issue