refactor: 【web-ant】重构认证模块并移除未使用的组件和功能【0fed9472】(剩余 request、present)

This commit is contained in:
YunaiV
2025-03-26 07:36:12 +08:00
parent e65469b5ea
commit c881a47ffd
12 changed files with 80 additions and 13 deletions

View File

@@ -57,9 +57,9 @@ export const useAuthStore = defineStore('auth', () => {
: await router.push(userInfo.homePath || DEFAULT_HOME_PATH);
}
if (userInfo?.realName) {
if (userInfo?.nickname) {
notification.success({
description: `${$t('authentication.loginSuccessDesc')}:${userInfo?.realName}`,
description: `${$t('authentication.loginSuccessDesc')}:${userInfo?.nickname}`,
duration: 3,
message: $t('authentication.loginSuccess'),
});
@@ -99,7 +99,7 @@ export const useAuthStore = defineStore('auth', () => {
let authPermissionInfo: AuthPermissionInfo | null = null;
authPermissionInfo = await getAuthPermissionInfoApi();
// userStore
userStore.setUserInfo(authPermissionInfo.user);
userStore.setUserInfo(authPermissionInfo.user); // TODO @芋艿:这里有报错
userStore.setUserRoles(authPermissionInfo.roles);
// accessStore
accessStore.setAccessMenus(authPermissionInfo.menus);