Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
2026-01-11 21:58:19 +08:00
committed by GitHub
parent 2dfb891465
commit 82a2acbdbe

View File

@@ -27,7 +27,7 @@ export const useUserStore = defineStore("user", {
if (isApiSuccess(res)) {
this.updateUserLoginStatus(res.data);
}
}catch(e) {
} catch (e) {
console.error("获取登录用户失败", e);
// 网络错误情况也视为未登录
this.loginUser = {