From bce9fa6938189f7c729e7ea99f467d0afd280fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=B8=86?= <201379873@qq.com> Date: Sun, 8 Jun 2025 13:06:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=B9=E7=AA=97=E5=85=AC=E5=91=8A?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/message/components/view/components/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/user/message/components/view/components/index.vue b/src/views/user/message/components/view/components/index.vue index 7a45fb0..1902c17 100644 --- a/src/views/user/message/components/view/components/index.vue +++ b/src/views/user/message/components/view/components/index.vue @@ -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() }) // 销毁阶段