Trim non core admin route entries
This commit is contained in:
@@ -17,7 +17,7 @@ from core.menu.schema import MenuCreate, MenuUpdate
|
||||
menu_cache = CacheManager(prefix="menu:")
|
||||
|
||||
# 缓存key
|
||||
AI_AGENT_ADMIN_MENU_CACHE_VERSION = "v2"
|
||||
AI_AGENT_ADMIN_MENU_CACHE_VERSION = "v3"
|
||||
MENU_TREE_CACHE_KEY = f"tree:ai_agent_admin:{AI_AGENT_ADMIN_MENU_CACHE_VERSION}"
|
||||
USER_ROUTE_CACHE_PREFIX = f"user_route:ai_agent_admin:{AI_AGENT_ADMIN_MENU_CACHE_VERSION}:"
|
||||
|
||||
@@ -31,25 +31,17 @@ AI_AGENT_ADMIN_MENU_NAMES = {
|
||||
"Codex",
|
||||
"SystemConfigManager",
|
||||
"SystemManagement",
|
||||
"SystemDept",
|
||||
"SystemPost",
|
||||
"SystemPermission",
|
||||
"UserManagement",
|
||||
"SystemMenu",
|
||||
"SystemRole",
|
||||
"UIConfigManager",
|
||||
"SystemTools",
|
||||
"系统工具",
|
||||
"SystemDict",
|
||||
"FileManager",
|
||||
"Message",
|
||||
"MessageList",
|
||||
"AnnouncementList",
|
||||
"AnnouncementManage",
|
||||
"userCenter",
|
||||
"OrgNode",
|
||||
"userSettings",
|
||||
"LoginLog",
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed } from 'vue';
|
||||
import { computed, defineAsyncComponent } from 'vue';
|
||||
|
||||
import { ZqDialog } from '#/components/zq-dialog';
|
||||
import { $t } from '#/locales';
|
||||
import OrgChartPanel from '#/views/_core/org-chart/modules/OrgChartPanel.vue';
|
||||
|
||||
defineOptions({
|
||||
name: 'UserProfileDialog',
|
||||
});
|
||||
|
||||
const OrgChartPanel = defineAsyncComponent(
|
||||
() => import('#/views/_core/org-chart/modules/OrgChartPanel.vue'),
|
||||
);
|
||||
|
||||
const props = defineProps<{
|
||||
modelValue: boolean;
|
||||
userId: string;
|
||||
|
||||
@@ -27,7 +27,6 @@ const modules = import.meta.glob([
|
||||
'./langs/*/apiToken.json',
|
||||
'./langs/*/authentication.json',
|
||||
'./langs/*/common.json',
|
||||
'./langs/*/loginLog.json',
|
||||
'./langs/*/menu.json',
|
||||
'./langs/*/menu-title.json',
|
||||
'./langs/*/message.json',
|
||||
|
||||
@@ -22,19 +22,11 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
|
||||
'../views/_core/authentication/login.vue',
|
||||
'../views/_core/authentication/oauth-callback.vue',
|
||||
'../views/_core/control-center/index.vue',
|
||||
'../views/_core/dept/index.vue',
|
||||
'../views/_core/dict/index.vue',
|
||||
'../views/_core/fallback/**/*.vue',
|
||||
'../views/_core/file-manager/index.vue',
|
||||
'../views/_core/login-log/index.vue',
|
||||
'../views/_core/menu/index.vue',
|
||||
'../views/_core/message/index.vue',
|
||||
'../views/_core/org-chart/index.vue',
|
||||
'../views/_core/post/index.vue',
|
||||
'../views/_core/permission/index.vue',
|
||||
'../views/_core/role/index.vue',
|
||||
'../views/_core/system-config/index.vue',
|
||||
'../views/_core/ui-config/index.vue',
|
||||
'../views/_core/user/index.vue',
|
||||
'../views/ai-platform/agent/editor/index.vue',
|
||||
'../views/ai-platform/agent/index.vue',
|
||||
|
||||
@@ -43,19 +43,11 @@ const componentKeys: string[] = Object.keys(
|
||||
'../../views/_core/authentication/login.vue',
|
||||
'../../views/_core/authentication/oauth-callback.vue',
|
||||
'../../views/_core/control-center/index.vue',
|
||||
'../../views/_core/dept/index.vue',
|
||||
'../../views/_core/dict/index.vue',
|
||||
'../../views/_core/fallback/**/*.vue',
|
||||
'../../views/_core/file-manager/index.vue',
|
||||
'../../views/_core/login-log/index.vue',
|
||||
'../../views/_core/menu/index.vue',
|
||||
'../../views/_core/message/index.vue',
|
||||
'../../views/_core/org-chart/index.vue',
|
||||
'../../views/_core/post/index.vue',
|
||||
'../../views/_core/permission/index.vue',
|
||||
'../../views/_core/role/index.vue',
|
||||
'../../views/_core/system-config/index.vue',
|
||||
'../../views/_core/ui-config/index.vue',
|
||||
'../../views/_core/user/index.vue',
|
||||
'../../views/ai-platform/agent/editor/index.vue',
|
||||
'../../views/ai-platform/agent/index.vue',
|
||||
|
||||
Reference in New Issue
Block a user