Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user