Skip to content

Commit dc400b5

Browse files
authored
fix: 修复前端路由警告 (#1795)
1 parent f65546a commit dc400b5

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

ui/src/router/modules/application.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ const applicationRouter = {
99
children: [
1010
{
1111
path: '/application',
12-
name: 'application',
12+
name: 'application-index',
13+
meta: { title: '应用主页', activeMenu: '/application' },
1314
component: () => import('@/views/application/index.vue')
1415
},
1516
{

ui/src/router/modules/dataset.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const datasetRouter = {
88
children: [
99
{
1010
path: '/dataset',
11-
name: 'dataset',
11+
name: 'dataset-index',
12+
meta: { title: '知识库主页', activeMenu: '/dataset' },
1213
component: () => import('@/views/dataset/index.vue')
1314
},
1415
{

ui/src/router/modules/function-lib.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ const functionLibRouter = {
99
{
1010
path: '/function-lib',
1111
name: 'function-lib',
12+
meta: { title: '函数库主页', activeMenu: '/function-lib' },
1213
component: () => import('@/views/function-lib/index.vue')
1314
}
1415
]

0 commit comments

Comments
 (0)