tremble il y a 3 ans
Parent
commit
0b260a406a
3 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 1 1
      src/app.vue
  2. 1 0
      src/components/RTC/PageRtcLive.vue
  3. 2 1
      src/utils/wxshare.js

+ 1 - 1
src/app.vue

@@ -480,7 +480,7 @@ onMounted(async () => {
     wxShare({
       title: `cdf澳門上葡京店~`,
       desc: "cdf澳門上葡京店~",
-      link: window.location.href.split("#")[0],
+      link: window.location.href,
       imgUrl: "https://glp-vr.cdfmembers.com/cdf/file/91dd5305525f463286f03a31abd1c154.jpg",
     });
   });

+ 1 - 0
src/components/RTC/PageRtcLive.vue

@@ -537,6 +537,7 @@ const startFollow = (app) => {
     ]);
 
     wxShare({
+      donotconfig:true,
       title: `【好友推薦】一起雲逛店吧~`,
       desc: "【好友推薦】一起雲逛店吧~",
       link: shareLink.value,

+ 2 - 1
src/utils/wxshare.js

@@ -280,7 +280,8 @@ export default async args => {
     if (typeof wx != 'undefined' && browser.detectWeixin()) {
         // if (typeof wx != 'undefined') {
         //需要引入 https://res.wx.qq.com/open/js/jweixin-1.2.0.js
-        await toConfigure()
+        !args.donotconfig && await toConfigure()
         setup(args)
     }
 }
+