Trim stale control center route candidate

This commit is contained in:
2026-06-10 19:46:32 +08:00
parent 8301bacce2
commit 4caf55d60d
3 changed files with 14 additions and 29 deletions
-1
View File
@@ -142,7 +142,6 @@ async function generateAccess(options: GenerateMenuAndRoutesOptions) {
'../views/_core/announcement/list.vue',
'../views/_core/authentication/login.vue',
'../views/_core/authentication/oauth-callback.vue',
'../views/_core/control-center/index.vue',
'../views/_core/fallback/**/*.vue',
'../views/_core/file-preview/index.vue',
'../views/_core/menu/index.vue',
@@ -99,27 +99,28 @@ const componentKeys: string[] = Object.keys(
'../../../_core/announcement/list.vue',
'../../../_core/authentication/login.vue',
'../../../_core/authentication/oauth-callback.vue',
'../../../_core/control-center/index.vue',
'../../../_core/fallback/**/*.vue',
'../../../_core/menu/index.vue',
'../../../_core/permission/index.vue',
'../../../_core/role/index.vue',
'../../../_core/system-config/index.vue',
'../../../_core/user/index.vue',
'../../../../ai-platform/agent/editor/index.vue',
'../../../../ai-platform/agent/index.vue',
'../../../../ai-platform/knowledge/detail/index.vue',
'../../../../ai-platform/knowledge/index.vue',
'../../../../ai-platform/workflow/editor/index.vue',
'../../../../ai-platform/workflow/index.vue',
'../../../../ai-platform/workflow-runs/index.vue',
'../../../ai-platform/agent/editor/index.vue',
'../../../ai-platform/agent/index.vue',
'../../../ai-platform/knowledge/detail/index.vue',
'../../../ai-platform/knowledge/index.vue',
'../../../ai-platform/workflow/editor/index.vue',
'../../../ai-platform/workflow/index.vue',
'../../../ai-platform/workflow-runs/index.vue',
'../../../online-dev/page-render/index.vue',
]),
)
.filter((item) => !item.includes('/modules/'))
.map((v) => {
const path = v
.replace('../../../_core/', '/_core/')
.replace('../../../../ai-platform/', '/ai-platform/');
.replace('../../../ai-platform/', '/ai-platform/')
.replace('../../../online-dev/', '/online-dev/');
return path.endsWith('.vue') ? path.slice(0, -4) : path;
});
@@ -235,12 +236,7 @@ function getFormSchema(
},
dependencies: {
show: (values) => {
return [
'agent',
'catalog',
'embedded',
'menu',
].includes(values.type);
return ['agent', 'catalog', 'embedded', 'menu'].includes(values.type);
},
triggerFields: ['type'],
},
@@ -316,12 +312,7 @@ function getFormSchema(
},
dependencies: {
show: (values) => {
return [
'catalog',
'embedded',
'link',
'menu',
].includes(values.type);
return ['catalog', 'embedded', 'link', 'menu'].includes(values.type);
},
triggerFields: ['type'],
},
@@ -336,12 +327,7 @@ function getFormSchema(
},
dependencies: {
show: (values) => {
return [
'agent',
'catalog',
'embedded',
'menu',
].includes(values.type);
return ['agent', 'catalog', 'embedded', 'menu'].includes(values.type);
},
triggerFields: ['type'],
},
@@ -17,7 +17,7 @@ exports[`defaultPreferences immutability test > should not modify the config obj
"contentPaddingRight": 0,
"contentPaddingTop": 0,
"defaultAvatar": "https://unpkg.com/@vbenjs/static-source@0.1.7/source/avatar-v1.webp",
"defaultHomePath": "/control-center",
"defaultHomePath": "/page-render/main_home",
"dynamicTitle": true,
"enableCheckUpdates": true,
"enablePreferences": true,