前后端分离项目中前端获取到后端api传来的富文本代码中包含图片路径无法显示的解决方案

res.goods_desc=res.goods_desc.replace(/\/media/g,host+"/media")
        this.about_data=res

 

posted @ 2020-06-23 04:07  雪落忆海  阅读(882)  评论(0编辑  收藏  举报