Commit 6f07c77e by zhangquan

后端处理<br>

1 parent 43720902
...@@ -147,9 +147,6 @@ export default { ...@@ -147,9 +147,6 @@ export default {
if(res && res.templateConfig){ if(res && res.templateConfig){
this.placeholderList = res.placeholderList this.placeholderList = res.placeholderList
for(const key in this.contentObj){ 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.contentObj[key] = res.templateConfig[key]
} }
this.$nextTick(()=>{ this.$nextTick(()=>{
...@@ -166,9 +163,6 @@ export default { ...@@ -166,9 +163,6 @@ export default {
let errorTip = ''; let errorTip = '';
params.useConditions = params.useConditions?.replace(/<span.*?class.*?keyname="(.*?)".*?<\/span>/g,'$1') params.useConditions = params.useConditions?.replace(/<span.*?class.*?keyname="(.*?)".*?<\/span>/g,'$1')
for(const key in params){ for(const key in params){
if(replaceArr.includes(key)){
params[key] = params[key]?.replace('<br>', '')
}
if(key!='id' && !params[key]){ if(key!='id' && !params[key]){
if(key == 'electronicSealUrl' || key == 'logoUrl'){ if(key == 'electronicSealUrl' || key == 'logoUrl'){
errorTip = `请上传${key == 'logoUrl' ? 'Logo图': '电子章图片'}` 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!