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