feat: 支持kpi指标命名控制启用关闭

This commit is contained in:
TsMask
2025-08-20 17:02:18 +08:00
parent e05084afdc
commit f6bdecd877
4 changed files with 656 additions and 71 deletions

View File

@@ -14,6 +14,7 @@ import useUserStore from '@/store/modules/user';
import useAppStore from '@/store/modules/app';
import useRouterStore from '@/store/modules/router';
import useNeInfoStore from '@/store/modules/neinfo';
import useNeListStore from '@/store/modules/ne_list';
// NProgress Configuration
NProgress.configure({ showSpinner: false });
@@ -220,6 +221,8 @@ router.beforeEach(async (to, from, next) => {
if (user.roles && user.roles.length === 0) {
try {
useNeInfoStore().fnRefreshNelist();
useNeListStore().fnNelistRefresh();
// 获取用户信息
await user.fnGetInfo();
// 获取路由信息