Merge pull request #367 from jamebal/dev
fix: 解决打开 Excalidraw 文件时偶尔出现内容为空的问题
This commit is contained in:
commit
5a6d961349
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user