//img 前加图片路径http://
this.product.details=this.product.details.replace(/src="img/gi,`src="${this.$url.base}img`)
//图太大 给img加 style
this.product.details=this.product.details.replace(/<img/gi,`<img style="width:100%"`)
转换完
微信扫一扫
//img 前加图片路径http://
this.product.details=this.product.details.replace(/src="img/gi,`src="${this.$url.base}img`)
//图太大 给img加 style
this.product.details=this.product.details.replace(/<img/gi,`<img style="width:100%"`)
转换完
相关推荐