新建公用-util.js
imgDeal(str){ return str.replace(/\<img/gi, '<img style="100%;height:auto;display:block;"'); }
index.vue
<rich-text :nodes="content"></rich-text>
index.js
this.content=this.util.imgDeal(content);