panhui 3 年 前
コミット
d886df9a32
1 ファイル変更7 行追加3 行削除
  1. 7 3
      src/components/rice/Share.vue

+ 7 - 3
src/components/rice/Share.vue

@@ -74,9 +74,13 @@ function share() {
 
 const inWeixin = /micromessenger/i.test(navigator.userAgent);
 function openWeixin() {
-    if (!inWeixin) {
-        window.location.href = 'weixin://';
-    }
+    gobal.$toast.success('复制成功');
+    setTimeout(() => {
+        if (!inWeixin) {
+            window.location.href = 'weixin://';
+        }
+        show.value = false;
+    }, 1000);
 }
 
 const showHelp = ref(false);