|
|
@@ -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标签
|