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);