From caddfd7efaabf86eb2348ae33d9b7a2281a2b167 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 16 十月 2026 21:04:56 +0800
Subject: [PATCH] fix(user): 导入失败明细改用弹窗展示,用户页字段统一叫「用户账号」
---
src/store/auth.ts | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/store/auth.ts b/src/store/auth.ts
index 3643cf0..15fd19e 100644
--- a/src/store/auth.ts
+++ b/src/store/auth.ts
@@ -21,6 +21,7 @@
socialLogin,
} from '#/api';
import { $t } from '#/locales';
+import { automaticApproval, loadAuditPolicy } from '#/store/audit-policy';
export const useAuthStore = defineStore('auth', () => {
const accessStore = useAccessStore();
@@ -134,6 +135,7 @@
// eslint-disable-next-line no-useless-assignment
let authPermissionInfo: AuthPermissionInfo | null = null;
authPermissionInfo = await getAuthPermissionInfoApi();
+ await loadAuditPolicy();
// userStore
userStore.setUserInfo(authPermissionInfo.user);
userStore.setUserRoles(authPermissionInfo.roles);
@@ -145,6 +147,7 @@
function $reset() {
loginLoading.value = false;
+ automaticApproval.value = false;
}
return {
--
Gitblit v1.9.3