liyongli преди 2 години
родител
ревизия
7f75397eb9
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  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>