Skip to content

Commit

Permalink
Merge pull request #367 from jamebal/dev
Browse files Browse the repository at this point in the history
fix: 解决打开 Excalidraw 文件时偶尔出现内容为空的问题
  • Loading branch information
jamebal authored Feb 10, 2025
2 parents 88be828 + 6835704 commit 5a6d961
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/office/ExcalidrawEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default {
},
data() {
return {
excalidrawUrl: `${window.location.origin}/excalidraw/app/`,
excalidrawUrl: null ,
excalidrawData: {
elements: [],
appState: {},
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5a6d961

Please sign in to comment.