lrf402788946 4 роки тому
батько
коміт
e5034efd0a
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      src/layout/common/share.vue

+ 1 - 2
src/layout/common/share.vue

@@ -60,12 +60,11 @@ export default {
       }
     },
     toShare() {
-      const url = encodeURIComponent(location.href.split('#')[0]);
       this.wx.updateAppMessageShareData({
         title: '测试分享',
         desc: '测试',
         // imgUrl:''
-        link: url,
+        link: `${this.host}/articlemobile/login`,
         success: res => {
           console.log('in function:share success');
           console.log(res);