🔨 优化异常处理逻辑.

This commit is contained in:
lijiahangmax
2025-11-28 10:27:02 +08:00
parent 61fa7a6e32
commit 0ece84bdf1
8 changed files with 11 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ export default defineStore('dict', {
const { data } = await getDictValueList(unloadKeys);
this.$patch(data as object);
} catch (e) {
} finally {
console.error('load dict error', e);
}
},

View File

@@ -22,6 +22,7 @@ export default defineStore('tips', {
await setTipsTipped(key);
this.tippedKeys.push(key);
} catch (e) {
console.error('set tipped error', e);
}
}
},

View File

@@ -113,6 +113,7 @@ export default defineStore('user', {
try {
await userLogout();
} catch (e) {
console.error('logout error', e);
} finally {
// 登出回调
this.logoutCallBack();