修复: 本地存储写满静默丢数据——失败告警 + 导入图片体积闸门

This commit is contained in:
lxy
2026-08-17 10:11:47 +08:00
parent f58fea1f68
commit aad7e6f76f
3 changed files with 37 additions and 4 deletions
+5
View File
@@ -168,6 +168,11 @@ onMounted(() => {
document.addEventListener('keydown', onKey)
})
/* 持久化失败告警 → toast(防止静默丢数据) */
watch(() => store.saveWarning.text, (txt) => {
if (txt) toast(txt)
})
/* 文库关闭时若在首页且从文库加载了 deck 则切入编辑 */
watch(libraryVisible, (now, prev) => {
if (prev && !now && deckLoaded.value) {