feat(web): add skills menu
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
* @Author: ZhaoYing
|
||||
* @Date: 2026-02-02 16:33:11
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-02-02 16:33:11
|
||||
* @Last Modified by: ZhaoYing
|
||||
* @Last Modified time: 2026-02-04 14:06:45
|
||||
*/
|
||||
/**
|
||||
* Route Configuration
|
||||
@@ -52,6 +52,7 @@ const componentMap: Record<string, LazyExoticComponent<ComponentType<object>>> =
|
||||
BasicLayout: lazy(() => import('@/components/Layout/BasicLayout')),
|
||||
LoginLayout: lazy(() => import('@/components/Layout/LoginLayout')),
|
||||
NoAuthLayout: lazy(() => import('@/components/Layout/NoAuthLayout')),
|
||||
BasicAuthLayout: lazy(() => import('@/components/Layout/BasicAuthLayout')),
|
||||
/** View components */
|
||||
Index: lazy(() => import('@/views/Index')),
|
||||
Home: lazy(() => import('@/views/Home')),
|
||||
@@ -88,6 +89,8 @@ const componentMap: Record<string, LazyExoticComponent<ComponentType<object>>> =
|
||||
Ontology: lazy(() => import('@/views/Ontology')),
|
||||
OntologyDetail: lazy(() => import('@/views/Ontology/pages/Detail')),
|
||||
Prompt: lazy(() => import('@/views/Prompt')),
|
||||
Skills: lazy(() => import('@/views/Skills')),
|
||||
SkillConfig: lazy(() => import('@/views/Skills/pages/SkillConfig')),
|
||||
Login: lazy(() => import('@/views/Login')),
|
||||
InviteRegister: lazy(() => import('@/views/InviteRegister')),
|
||||
NoPermission: lazy(() => import('@/views/NoPermission')),
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
{ "path": "/pricing", "element": "Pricing" },
|
||||
{ "path": "/order-pay", "element": "OrderPayment" },
|
||||
{ "path": "/orders", "element": "OrderHistory" },
|
||||
{ "path": "/skills", "element": "Skills" },
|
||||
{ "path": "/no-permission", "element": "NoPermission" }
|
||||
]
|
||||
},
|
||||
@@ -50,6 +51,13 @@
|
||||
{ "path": "/ontology/:id", "element": "OntologyDetail" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"element": "BasicAuthLayout",
|
||||
"children": [
|
||||
{ "path": "/skills/add", "element": "SkillConfig" },
|
||||
{ "path": "/skills/config/:id", "element": "SkillConfig" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"element": "NoAuthLayout",
|
||||
"children": [
|
||||
|
||||
Reference in New Issue
Block a user