修复bug

This commit is contained in:
yezian 2024-02-06 00:29:12 +08:00
parent 88765401a1
commit 5132c9258b
1 changed files with 2 additions and 4 deletions

View File

@ -37,12 +37,10 @@ export default function Weixin({ params }) {
//androidios0:android1:ios //androidios0:android1:ios
const openWechat = () => { const openWechat = () => {
if (device === 0) { if (device === 0) {
window.open("weixin://", "_blank"); router.push("weixin://");
return; return;
} }
var link = document.createElement("a"); router.replace("weixin://scanqrcode");
link.href = "weixin://scanqrcode";
link.click();
}; };
if (isLoading) { if (isLoading) {