liyongli 2 lat temu
rodzic
commit
7f75397eb9
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      src/components/shanshipin.vue

+ 2 - 4
src/components/shanshipin.vue

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