panhui 4 лет назад
Родитель
Сommit
a0ccb9c91c
1 измененных файлов с 9 добавлено и 1 удалено
  1. 9 1
      src/main/pc-space/src/components/Share.vue

+ 9 - 1
src/main/pc-space/src/components/Share.vue

@@ -32,7 +32,15 @@ export default {
         ...mapState(['userInfo']),
         shareConfig() {
             return {
-                url: resolveUrl(this.$baseUrl, '9th/' + this.pageType + '?id=' + this.info.id+'&='+(this.isLogin?this.userInfo.id:'')),
+                url: resolveUrl(
+                    this.$baseUrl,
+                    '9th/' +
+                        this.pageType +
+                        '?id=' +
+                        this.info.id +
+                        '&invitor=' +
+                        (this.isLogin ? this.userInfo.id : '')
+                ),
                 title: this.shareTitle, // 标题,默认读取 document.title 或者 <meta name="title" content="share.js" />
                 description: this.description, // 描述, 默认读取head标签:<meta name="description" content="PHP弱类型的实现原理分析" />
                 image: this.image, // 图片, 默认取网页中第一个img标签