sinchang / vue-social-share

A Vue 2.x social share component

Home Page:http://vue-social-share.surge.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

自定义分享内容无效?

huangche007 opened this issue · comments

config对象:
data(){ return{ config:{} } }

mounted(){ this.getNewsDetailData(); }

methods:{ getNewsDetailData(){ axios.get("xxxx").then(res)=>{ this.newDetailObj = res.data.data.detail; this.isShowAll = true; this.config.url = window.location.href; this.config.source = this.newDetailObj.source; this.config.title = this.newDetailObj.title; this.config.description = this.newDetailObj.abstract; this.config.image = this.newDetailObj.image; } } }
发现自定义分享的内容无效