修复: CR-21 startDataChangedListener await 包 try/catch(AR-11 挂载健壮性)
App.vue onMounted startDataChangedListener() await 无 try/catch,Tauri listen 失败(极罕见)会 reject onMounted 致 AR-11 静默失效+Vue warn。包 try/catch console.error。cron 巡检捕获另一会话走查第3轮 CR-21(我 AR-11 挂载引入),vue-tsc 0
This commit is contained in:
@@ -215,7 +215,12 @@ onMounted(async () => {
|
||||
// 加载知识库候选数(供侧栏 knowledge badge 显示)
|
||||
knowledgeStore.loadCandidates()
|
||||
// AR-11:数据变更联动监听(AI 工具 create/update/delete 后端 emit df-data-changed → store listen 刷新对应列表,全局挂载因用户可在任意页)
|
||||
await projectStore.startDataChangedListener()
|
||||
// CR-260615-21:包 try/catch 防 Tauri listen 失败 reject onMounted 致 AR-11 静默失效
|
||||
try {
|
||||
await projectStore.startDataChangedListener()
|
||||
} catch (e) {
|
||||
console.error('启动数据变更监听失败:', e)
|
||||
}
|
||||
})
|
||||
|
||||
/// 一次性迁移:遍历遗留的 localStorage key,若有值则导入 appSettings(SQLite),
|
||||
|
||||
Reference in New Issue
Block a user