Skip to content

Commit

Permalink
fix: formatted document
Browse files Browse the repository at this point in the history
fix #434
  • Loading branch information
YangFong committed Oct 12, 2024
1 parent 6ece687 commit 9f0a7b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stores/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}

Expand Down

0 comments on commit 9f0a7b6

Please sign in to comment.