From e032c06ba3489d45e55b87404df8dbccc39cede7 Mon Sep 17 00:00:00 2001 From: YangFong Date: Sat, 12 Oct 2024 10:20:04 +0800 Subject: [PATCH] fix: formatted document (#435) fix #434 --- src/stores/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/index.ts b/src/stores/index.ts index d54bcce..f96732c 100644 --- a/src/stores/index.ts +++ b/src/stores/index.ts @@ -57,8 +57,8 @@ export const useStore = defineStore(`store`, () => { // 格式化文档 const formatContent = () => { formatDoc((editor.value!).getValue()).then((doc) => { - editorContent.value = doc; - (editor.value!).setValue(doc) + editorContent.value = doc + toRaw(editor.value!).setValue(doc) }) }