|
|
@@ -154,15 +154,15 @@ onMounted(async () => {
|
|
|
})
|
|
|
|
|
|
// 应用注销时向 localStorage 中记录下本次 indexedDB 的数据库ID,用于之后清除数据库
|
|
|
-window.addEventListener('beforeunload', () => {
|
|
|
- const discardedDB = localStorage.getItem(LOCALSTORAGE_KEY_DISCARDED_DB)
|
|
|
- const discardedDBList: string[] = discardedDB ? JSON.parse(discardedDB) : []
|
|
|
+// window.addEventListener('beforeunload', () => {
|
|
|
+// const discardedDB = localStorage.getItem(LOCALSTORAGE_KEY_DISCARDED_DB)
|
|
|
+// const discardedDBList: string[] = discardedDB ? JSON.parse(discardedDB) : []
|
|
|
|
|
|
- discardedDBList.push(databaseId.value)
|
|
|
+// discardedDBList.push(databaseId.value)
|
|
|
|
|
|
- const newDiscardedDB = JSON.stringify(discardedDBList)
|
|
|
- localStorage.setItem(LOCALSTORAGE_KEY_DISCARDED_DB, newDiscardedDB)
|
|
|
-})
|
|
|
+// const newDiscardedDB = JSON.stringify(discardedDBList)
|
|
|
+// localStorage.setItem(LOCALSTORAGE_KEY_DISCARDED_DB, newDiscardedDB)
|
|
|
+// })
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|