提交 fb14387b authored 作者: 翟畅's avatar 翟畅

zc图片替换

上级 beb25a13
......@@ -227,7 +227,8 @@ export default {
})
this.dataForm.diyTypeCode = arr
}
this.dataForm.synopsis = this.dataForm.synopsis.replace('<img src="/file/web/','<img src="http://ysj.class.com.cn/file/web/')
let reg1 = /<img src="\/file\/web\//g
this.dataForm.synopsis = this.dataForm.synopsis.replace(reg1,'<img src="http://ysj.class.com.cn/file/web/')
} else {
this.$message.error('数据加载失败');
}
......
......@@ -397,7 +397,8 @@ export default {
})
this.dataForm.diyTypeCode = arr
}
this.dataForm.synopsis = this.dataForm.synopsis.replace('<img src="/file/web/','<img src="http://ysj.class.com.cn/file/web/')
let reg1 = /<img src="\/file\/web\//g
this.dataForm.synopsis = this.dataForm.synopsis.replace(reg1,'<img src="http://ysj.class.com.cn/file/web/')
} else {
this.$message.error('数据加载失败');
}
......
......@@ -483,12 +483,13 @@ export default {
// this.playFileList.push({url:`${fileUrl}?fileName=${item.imgId}&isOnLine=true`,response:item.imgId})
// imgList.push(item.imgId)
// })
// this.dataForm.imgList = imgList
this.dataForm.preface = this.dataForm.preface.replace('<img src="/file/web/','<img src="http://ysj.class.com.cn/file/web/')
this.dataForm.importantNote = this.dataForm.importantNote.replace('<img src="/file/web/','<img src="http://ysj.class.com.cn/file/web/')
this.dataForm.synopsis = this.dataForm.synopsis.replace('<img src="/file/web/','<img src="http://ysj.class.com.cn/file/web/')
this.dataForm.authorSynopsis = this.dataForm.authorSynopsis.replace('<img src="/file/web/','<img src="http://ysj.class.com.cn/file/web/')
this.dataForm.bookCatalog = this.dataForm.bookCatalog.replace('<img src="/file/web/','<img src="http://ysj.class.com.cn/file/web/')
// this.dataForm.imgList =
let reg1 = /<img src="\/file\/web\//g
this.dataForm.preface = this.dataForm.preface.replace(reg1,'<img src="http://ysj.class.com.cn/file/web/')
this.dataForm.importantNote = this.dataForm.importantNote.replace(reg1,'<img src="http://ysj.class.com.cn/file/web/')
this.dataForm.synopsis = this.dataForm.synopsis.replace(reg1,'<img src="http://ysj.class.com.cn/file/web/')
this.dataForm.authorSynopsis = this.dataForm.authorSynopsis.replace(reg1,'<img src="http://ysj.class.com.cn/file/web/')
this.dataForm.bookCatalog = this.dataForm.bookCatalog.replace(reg1,'<img src="http://ysj.class.com.cn/file/web/')
} else {
this.$message.error('数据加载失败');
}
......
......@@ -221,7 +221,8 @@ export default {
this.dataForm.diyTypeCode = arr
}
this.getLabel()
this.dataForm.synopsis = this.dataForm.synopsis.replace('<img src="/file/web/','<img src="http://ysj.class.com.cn/file/web/')
let reg1 = /<img src="\/file\/web\//g
this.dataForm.synopsis = this.dataForm.synopsis.replace(reg1,'<img src="http://ysj.class.com.cn/file/web/')
} else {
this.$message.error('数据加载失败');
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论