From 71eeac34fee9f5a53168e0872e5fb7b855c0b4c8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@gmail.com> Date: 星期三, 12 二月 2025 21:22:55 +0800 Subject: [PATCH] # --- rsf-admin/src/config/authProvider.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rsf-admin/src/config/authProvider.js b/rsf-admin/src/config/authProvider.js index 1c440e7..38cf41d 100644 --- a/rsf-admin/src/config/authProvider.js +++ b/rsf-admin/src/config/authProvider.js @@ -7,7 +7,7 @@ const AuthProvider = { // login login: async ({ username, password, tenantId }) => { - const { accessToken, user } = await login({ + const { accessToken, user, tenant } = await login({ username: username, password: password, tenantId: tenantId, @@ -18,7 +18,8 @@ avatar: avatar, fullName: user.nickname, id: user.id, - username: user.username + username: user.username, + tenant: tenant, } setToken(accessToken); localStorage.setItem("user", JSON.stringify(userToPersist)); -- Gitblit v1.9.1