Skip to content

Commit 6691fbf

Browse files
authored
fix: 修复initSnapshotDatabase方法为空报错问题
1 parent 17e95f2 commit 6691fbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/Editor/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const snapshotStore = useSnapshotStore()
2828
2929
onMounted(async () => {
3030
await deleteDiscardedDB()
31-
await snapshotStore.initSnapshotDatabase()
31+
// await snapshotStore.initSnapshotDatabase()
3232
// mainStore.getFonts()
3333
})
3434
@@ -40,4 +40,4 @@ window.addEventListener('unload', () => {
4040
const newDiscardedDB = JSON.stringify(discardedDBList)
4141
localStorage.setItem(LocalStorageDiscardedKey, newDiscardedDB)
4242
})
43-
</script>
43+
</script>

0 commit comments

Comments
 (0)