fix: 弹窗公告显示问题

This commit is contained in:
秋帆
2025-06-08 13:06:11 +08:00
parent a239dbd1ea
commit bce9fa6938

View File

@@ -45,7 +45,7 @@ watch(() => props.modelValue, (value) => {
editorConfig.content = value
init()
}
})
}, { deep: true })
watch(() => appStore.theme, (value) => {
editorConfig.theme = value
init()
@@ -54,6 +54,7 @@ watch(() => appStore.theme, (value) => {
// 挂载阶段
onMounted(() => {
editorConfig.element = divRef.value
editorConfig.content = props.modelValue
init()
})
// 销毁阶段