Commit 6f07c77e by zhangquan

后端处理<br>

1 parent 43720902
......@@ -147,9 +147,6 @@ export default {
if(res && res.templateConfig){
this.placeholderList = res.placeholderList
for(const key in this.contentObj){
if(replaceArr.includes(key)){
res.templateConfig[key] = res.templateConfig[key]?.replace('<p></p>', '<p><br></p>')
}
this.contentObj[key] = res.templateConfig[key]
}
this.$nextTick(()=>{
......@@ -166,9 +163,6 @@ export default {
let errorTip = '';
params.useConditions = params.useConditions?.replace(/<span.*?class.*?keyname="(.*?)".*?<\/span>/g,'$1')
for(const key in params){
if(replaceArr.includes(key)){
params[key] = params[key]?.replace('<br>', '')
}
if(key!='id' && !params[key]){
if(key == 'electronicSealUrl' || key == 'logoUrl'){
errorTip = `请上传${key == 'logoUrl' ? 'Logo图': '电子章图片'}`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!