liyongli 2 år sedan
förälder
incheckning
f7fe768894
1 ändrade filer med 3 tillägg och 2 borttagningar
  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>