<rich-text :nodes="goodsInfor.content"></rich-text>
数据替换下
res.data.content = res.data.content.replace(/<img/gi, "<img class='richImg'");
css
.richImg { width: 100% !important; height: auto !important; }
<rich-text :nodes="goodsInfor.content"></rich-text>
数据替换下
res.data.content = res.data.content.replace(/<img/gi, "<img class='richImg'");
css
.richImg { width: 100% !important; height: auto !important; }