fix: 解决打开 Excalidraw 文件时偶尔出现内容为空的问题

This commit is contained in:
jmal 2025-02-10 15:02:08 +08:00
parent d041bf59e9
commit 68357040fb

View File

@ -71,7 +71,7 @@ export default {
},
data() {
return {
excalidrawUrl: `${window.location.origin}/excalidraw/app/`,
excalidrawUrl: null ,
excalidrawData: {
elements: [],
appState: {},
@ -130,6 +130,7 @@ export default {
this.file.path = res.data.path
this.loadData(res.data.contentText)
this.currentContext = res.data.contentText
this.excalidrawUrl = `${window.location.origin}/excalidraw/app/`
})
this.$nextTick(() => {
this.$refs.historyPopover.loadHistoryList(this.file.id)