🔨 优化异常处理逻辑.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ export default defineStore('tips', {
|
||||
await setTipsTipped(key);
|
||||
this.tippedKeys.push(key);
|
||||
} catch (e) {
|
||||
console.error('set tipped error', e);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -113,6 +113,7 @@ export default defineStore('user', {
|
||||
try {
|
||||
await userLogout();
|
||||
} catch (e) {
|
||||
console.error('logout error', e);
|
||||
} finally {
|
||||
// 登出回调
|
||||
this.logoutCallBack();
|
||||
|
||||
Reference in New Issue
Block a user