<rich-text :nodes="acdescripts"></rich-text>
data() {
return {
acdescripts: "",
};
},
//富文本变量 = 后台传回来的富文本数据
this.acdescripts = this.info.assemble.abDesc.acdescription;
//解析富文本数据
this.acdescripts = this.acdescripts.replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block" ').replace(/<section/g,'<div').replace(/\/section>/g,'\div>');