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