Remove app context from AI admin flows
This commit is contained in:
@@ -7,6 +7,15 @@ const routes: RouteRecordRaw[] = [
|
||||
path: '/ai-platform/knowledge',
|
||||
redirect: '/ai-platform/knowledge-base',
|
||||
},
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
title: '智能体对话',
|
||||
},
|
||||
name: 'AgentChat',
|
||||
path: '/agent-chat/:code',
|
||||
component: () => import('#/views/_core/agent-chat/index.vue'),
|
||||
},
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
@@ -22,19 +31,6 @@ const routes: RouteRecordRaw[] = [
|
||||
path: '/ai-platform/knowledge/detail/:id',
|
||||
redirect: (to) => `/ai-platform/knowledge-base/detail/${to.params.id}`,
|
||||
},
|
||||
{
|
||||
meta: { hideInMenu: true },
|
||||
name: 'SubAppAIKnowledgeLegacyRedirect',
|
||||
path: '/app/:appCode/ai-platform/knowledge',
|
||||
redirect: (to) => `/app/${to.params.appCode}/ai-platform/knowledge-base`,
|
||||
},
|
||||
{
|
||||
meta: { hideInMenu: true },
|
||||
name: 'SubAppAIKnowledgeLegacyDetailRedirect',
|
||||
path: '/app/:appCode/ai-platform/knowledge/detail/:id',
|
||||
redirect: (to) =>
|
||||
`/app/${to.params.appCode}/ai-platform/knowledge-base/detail/${to.params.id}`,
|
||||
},
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
@@ -44,16 +40,7 @@ const routes: RouteRecordRaw[] = [
|
||||
path: '/ai-platform/workflow-runs',
|
||||
component: () => import('#/views/ai-platform/workflow-runs/index.vue'),
|
||||
},
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
title: '执行历史',
|
||||
},
|
||||
name: 'SubAppAIWorkflowRuns',
|
||||
path: '/app/:appCode/ai-platform/workflow-runs',
|
||||
component: () => import('#/views/ai-platform/workflow-runs/index.vue'),
|
||||
},
|
||||
// 工作流编辑器 - 主应用
|
||||
// 工作流编辑器
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
@@ -64,18 +51,7 @@ const routes: RouteRecordRaw[] = [
|
||||
path: '/ai-platform/workflow/editor/:id',
|
||||
component: () => import('#/views/ai-platform/workflow/editor/index.vue'),
|
||||
},
|
||||
// 工作流编辑器 - 子应用
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
title: '工作流编辑器',
|
||||
noBasicLayout: true,
|
||||
},
|
||||
name: 'SubAppAIWorkflowEditor',
|
||||
path: '/app/:appCode/ai-platform/workflow/editor/:id',
|
||||
component: () => import('#/views/ai-platform/workflow/editor/index.vue'),
|
||||
},
|
||||
// 智能体编辑器 - 主应用
|
||||
// 智能体编辑器
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
@@ -86,18 +62,7 @@ const routes: RouteRecordRaw[] = [
|
||||
path: '/ai-platform/agent/editor/:id',
|
||||
component: () => import('#/views/ai-platform/agent/editor/index.vue'),
|
||||
},
|
||||
// 智能体编辑器 - 子应用
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
title: '智能体编辑器',
|
||||
noBasicLayout: true,
|
||||
},
|
||||
name: 'SubAppAIAgentEditor',
|
||||
path: '/app/:appCode/ai-platform/agent/editor/:id',
|
||||
component: () => import('#/views/ai-platform/agent/editor/index.vue'),
|
||||
},
|
||||
// 知识库详情 - 主应用
|
||||
// 知识库详情
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
@@ -107,16 +72,6 @@ const routes: RouteRecordRaw[] = [
|
||||
path: '/ai-platform/knowledge-base/detail/:id',
|
||||
component: () => import('#/views/ai-platform/knowledge/detail/index.vue'),
|
||||
},
|
||||
// 知识库详情 - 子应用
|
||||
{
|
||||
meta: {
|
||||
hideInMenu: true,
|
||||
title: '知识库详情',
|
||||
},
|
||||
name: 'SubAppAIKnowledgeDetail',
|
||||
path: '/app/:appCode/ai-platform/knowledge-base/detail/:id',
|
||||
component: () => import('#/views/ai-platform/knowledge/detail/index.vue'),
|
||||
},
|
||||
];
|
||||
|
||||
export default routes;
|
||||
|
||||
Reference in New Issue
Block a user