feat: 参数配置刷新无法正常打开,导入白名单字段格式转换

This commit is contained in:
TsMask
2025-07-21 15:40:13 +08:00
parent 394cef66c2
commit d37fd4deae
3 changed files with 21 additions and 7 deletions

View File

@@ -13,6 +13,7 @@ import { validHttp } from '@/utils/regular-utils';
import useUserStore from '@/store/modules/user';
import useAppStore from '@/store/modules/app';
import useRouterStore from '@/store/modules/router';
import useNeInfoStore from '@/store/modules/neinfo';
// NProgress Configuration
NProgress.configure({ showSpinner: false });
@@ -211,6 +212,7 @@ router.beforeEach(async (to, from, next) => {
const user = useUserStore();
if (user.roles && user.roles.length === 0) {
try {
useNeInfoStore().fnRefreshNelist();
// 获取用户信息
await user.fnGetInfo();
// 获取路由信息