fix: formatted document (#435)
All checks were successful
Build and Deploy / build-and-deploy (push) Has been skipped

fix #434
This commit is contained in:
YangFong 2024-10-12 10:20:04 +08:00 committed by GitHub
parent 6ece687e84
commit e032c06ba3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
})
}