From 82a2acbdbe84664cd0e6ec4c5e5154a0b750a558 Mon Sep 17 00:00:00 2001 From: MeowRain Date: Sun, 11 Jan 2026 21:58:19 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/store/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/user.ts b/src/store/user.ts index 1e6f61e..2afa7d8 100644 --- a/src/store/user.ts +++ b/src/store/user.ts @@ -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 = {