修改 报错上传一级 用户认证逻辑

This commit is contained in:
张成
2025-10-05 12:30:48 +08:00
parent 2548e15ac4
commit 6058580b29
5 changed files with 9 additions and 20 deletions

View File

@@ -101,13 +101,6 @@ export const wechat_auth_login = async (
});
if (auth_response.code === 0) {
// 登录成功后,更新用户信息到 store
try {
await useUser.getState().fetchUserInfo();
} catch (error) {
console.error("更新用户信息到 store 失败:", error);
}
return {
success: true,
message: "微信登录成功",