liyongli 2 anos atrás
pai
commit
ee713d8f83
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      src/components/shanshipin.vue

+ 2 - 1
src/components/shanshipin.vue

@@ -27,6 +27,7 @@
   </van-row>
 </template>
 <script setup>
+import { Toast } from "vant";
 // import { reactive } from "vue";
 /**
  * window.$originData.orginParames.title 页面标题
@@ -52,7 +53,7 @@ function download() {
     });
     const url = getDownloadUrl();
     if (isIpad || isIpod || isIphone) return location.href = url;
-    if (isWechat) return document.querySelector(".weixin").setAttribute("style", "display: block");
+    if (isWechat) return Toast("请在浏览器打开下载app");
     location.href = url;
   }, 200);
 }