修复: 本地存储写满静默丢数据——失败告警 + 导入图片体积闸门
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user