Skip to content

Commit e032c06

Browse files
authored
fix: formatted document (doocs#435)
fix doocs#434
1 parent 6ece687 commit e032c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stores/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export const useStore = defineStore(`store`, () => {
5757
// 格式化文档
5858
const formatContent = () => {
5959
formatDoc((editor.value!).getValue()).then((doc) => {
60-
editorContent.value = doc;
61-
(editor.value!).setValue(doc)
60+
editorContent.value = doc
61+
toRaw(editor.value!).setValue(doc)
6262
})
6363
}
6464

0 commit comments

Comments
 (0)