Closed huangche007 closed 6 years ago
config对象: data(){ return{ 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; } } } 发现自定义分享的内容无效
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; } } }
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; } } }
发现自定义分享的内容无效