liyongli 2 年 前
コミット
f7fe768894
1 ファイル変更3 行追加2 行削除
  1. 3 2
      src/components/shanshipin.vue

+ 3 - 2
src/components/shanshipin.vue

@@ -50,11 +50,12 @@ function download() {
       page_name: "官网",
       event_type: "downloadApp",
     });
+    const url = getDownloadUrl();
 
-    if (isIpad || isIpod || isIphone) return window.open(getDownloadUrl());
+    if (isIpad || isIpod || isIphone) return location.href = url;
     if (isWechat)
       document.querySelector(".weixin").setAttribute("style", "display: block");
-    else window.open(getDownloadUrl());
+    else location.href = url;
   }, 200);
 }
 </script>