fix(仪表板): 修复因富文本视图导致的进入编辑状态的仪表板,初始保存按钮状态不对的问题

This commit is contained in:
wangjiahao 2022-08-18 14:59:33 +08:00
parent 06052ea48e
commit 06ee7123f0

View File

@ -116,7 +116,7 @@ export default {
if (this.canEdit) {
this.element.propValue.textValue = newValue
}
this.initReady||this.$store.commit('canvasChange')
this.initReady&&this.$store.commit('canvasChange')
}
},
mounted() {
@ -131,7 +131,9 @@ export default {
tinymce.init({})
this.myValue = this.assignment(this.element.propValue.textValue)
bus.$on('initCurFields-' + this.element.id, this.initCurFieldsChange)
this.initReady=true
this.$nextTick(()=>{
this.initReady=true
})
},
initCurFieldsChange() {
if (!this.canEdit) {