1,修改文字,用replace方法
<p class="intro-info-desc">{{row.detail.desc.replace(/学乐佳/,"学有利")}}</p>
2,修改图片,改变后台返回的数据
let resA=[
{
id: '1',
name: '测试1',
coverImage: 'http://www.baidu.com/1.jpg'
},
{
id: '2',
name: '测试2',
coverImage: 'http://www.baidu.com/2.jpg'
}
]
let inx=resA.map(item=>item.coverImage).indexOf('http://www.baidu.com/1.jpg')
if(inx!=-1){
resA[inx].coverImage=require('~/assets/img/xylgsjz.png')
}