Skip to content

Commit 6c41aca

Browse files
committed
fix(view): 修改路由
1 parent 65eda1b commit 6c41aca

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

admin/src/router/index.js

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export const constantRouterMap = [
4747
{
4848
path: '/api_excel',
4949
component: Layout,
50+
redirect: '/api_excel/index',
5051
name: 'Excel-List',
5152
meta: { title: '批量测试管理', icon: 'ico-table' },
5253
children: [
@@ -178,6 +179,8 @@ export const constantRouterMap = [
178179
name: '权限',
179180
meta: { title: '权限管理', icon: 'auth' },
180181
children: [
182+
{ path: 'index', name: 'userIndex', component: () => import('@/views/user/index'), hidden: true },
183+
{ path: 'password', name: 'userPassword', component: () => import('@/views/user/password'), hidden: true },
181184
{ path: '/user/add', name: 'AddUser', component: () => import('@/views/user/add'), hidden: true },
182185
{ path: '/user/edit/:id', name: 'EditUser', component: () => import('@/views/user/edit'), hidden: true },
183186
{
@@ -206,17 +209,6 @@ export const constantRouterMap = [
206209
]
207210
},
208211

209-
{
210-
path: '/user',
211-
component: Layout,
212-
redirect: '/user/index',
213-
hidden: true,
214-
children: [
215-
{ path: 'index', name: 'userIndex', component: () => import('@/views/user/index'), hidden: true },
216-
{ path: 'password', name: 'userPassword', component: () => import('@/views/user/password'), hidden: true }
217-
]
218-
},
219-
220212
{
221213
path: '/form',
222214
component: Layout,

0 commit comments

Comments
 (0)