自定义分享内容无效?
huangche007 opened this issue · comments
Huangche commented
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; } } }
发现自定义分享的内容无效