forked from github/dataease
refactor(视图): 富文本视图如果未定义字段显示'无法获取字段'定义字段但没有值则不显示
This commit is contained in:
parent
634530411e
commit
864c6e42fd
@ -148,7 +148,7 @@ export default {
|
|||||||
if (on) {
|
if (on) {
|
||||||
on.forEach(itm => {
|
on.forEach(itm => {
|
||||||
const ele = itm.slice(1, -1)
|
const ele = itm.slice(1, -1)
|
||||||
content = content.replace(itm, _this.dataRowNameSelect[ele] ? _this.dataRowNameSelect[ele] : '[无法获取字段值]')
|
content = content.replace(itm, _this.dataRowNameSelect[ele] !== undefined ? _this.dataRowNameSelect[ele] : '[无法获取字段值]')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
content = content.replace('class="base-selected"','')
|
content = content.replace('class="base-selected"','')
|
||||||
|
Loading…
Reference in New Issue
Block a user