forked from github/dataease
fix(图表): 修复富文本添加字段时有时控制台会打印异常
This commit is contained in:
parent
eaff01b3d3
commit
3c4ae62584
@ -154,7 +154,7 @@ watch(
|
||||
if (!val) {
|
||||
const ed = tinymce.editors[tinymceId]
|
||||
if (canEdit.value) {
|
||||
element.value.propValue.textValue = ed.getContent()
|
||||
element.value.propValue.textValue = ed?.getContent()
|
||||
}
|
||||
element.value['editing'] = false
|
||||
canEdit.value = false
|
||||
@ -170,7 +170,7 @@ watch(
|
||||
() => {
|
||||
if (canEdit.value) {
|
||||
const ed = tinymce.editors[tinymceId]
|
||||
element.value.propValue.textValue = ed.getContent()
|
||||
element.value.propValue.textValue = ed?.getContent()
|
||||
}
|
||||
if (initReady.value && canEdit.value) {
|
||||
snapshotStore.recordSnapshotCache('renderChart', element.value.id)
|
||||
|
Loading…
Reference in New Issue
Block a user