修改帖子
Change-Id: I467b35242bce8b27d612eb96f2710b27aa03d1d2
diff --git a/src/pages/AuthPage/AuthPage.jsx b/src/pages/AuthPage/AuthPage.jsx
index 4c51ff9..64f3378 100644
--- a/src/pages/AuthPage/AuthPage.jsx
+++ b/src/pages/AuthPage/AuthPage.jsx
@@ -67,8 +67,9 @@
if (data.msg === "登录成功" && data.user) {
// 保存用户信息到 localStorage
localStorage.setItem("user", JSON.stringify(data.user));
- localStorage.setItem("userId", data.user.id); // 如果有 id 字段
- window.location.href = '/forum';
+ localStorage.setItem("userId", data.user.userId); // 如果有 id 字段
+ debugger
+ // window.location.href = '/forum';
} else {
throw new Error(data.msg || "登录失败");
}