add(路由):补全路由
This commit is contained in:
+86
-20
@@ -33,7 +33,7 @@ const routes = [
|
||||
{
|
||||
path: '/layout',
|
||||
component: () => import('@/views/layout/Home.vue'),
|
||||
redirect:'/layout/index',
|
||||
redirect: '/layout/index',
|
||||
children: [
|
||||
{
|
||||
path: 'index',
|
||||
@@ -42,8 +42,8 @@ const routes = [
|
||||
title: '主页',
|
||||
icon: 'home',
|
||||
showInMenu: true,
|
||||
showInUser:false,
|
||||
isHome:true
|
||||
showInUser: false,
|
||||
isHome: true
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -53,30 +53,96 @@ const routes = [
|
||||
title: '用户管理',
|
||||
icon: 'users',
|
||||
showInMenu: true,
|
||||
showInUser:false,
|
||||
isHome:false
|
||||
showInUser: false,
|
||||
isHome: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'test',
|
||||
component: () => import('@/views/layout/Users.vue'),
|
||||
meta: {
|
||||
title: '充值中心',
|
||||
icon: 'inbox',
|
||||
showInMenu: true,
|
||||
showInUser:false,
|
||||
isHome:false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'api',
|
||||
component: () => import('@/views/layout/Dashboard.vue'),
|
||||
path: 'apis',
|
||||
component: () => import('@/views/layout/APIs.vue'),
|
||||
meta: {
|
||||
title: 'API管理',
|
||||
icon: 'home',
|
||||
icon: 'layers',
|
||||
showInMenu: true,
|
||||
showInUser: false,
|
||||
isHome: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'packages',
|
||||
component: () => import('@/views/layout/Packages.vue'),
|
||||
meta: {
|
||||
title: '套餐管理',
|
||||
icon: 'grid',
|
||||
showInMenu: true,
|
||||
showInUser: false,
|
||||
isHome: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'buypackage',
|
||||
component: () => import('@/views/layout/BuyPackage.vue'),
|
||||
meta: {
|
||||
title: '套餐购买',
|
||||
icon: 'shopping-bag',
|
||||
showInMenu: true,
|
||||
showInUser: true,
|
||||
isHome: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'orders',
|
||||
component: () => import('@/views/layout/Orders.vue'),
|
||||
meta: {
|
||||
title: '订单管理',
|
||||
icon: 'shopping-cart',
|
||||
showInMenu: true,
|
||||
showInUser: false,
|
||||
isHome: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'balance',
|
||||
component: () => import('@/views/layout/Balance.vue'),
|
||||
meta: {
|
||||
title: '充值中心',
|
||||
icon: 'dollar-sign',
|
||||
showInMenu: true,
|
||||
showInUser: true,
|
||||
isHome: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'records',
|
||||
component: () => import('@/views/layout/Records.vue'),
|
||||
meta: {
|
||||
title: '消费记录',
|
||||
icon: 'archive',
|
||||
showInMenu: true,
|
||||
showInUser: true,
|
||||
isHome: false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'system',
|
||||
component: () => import('@/views/layout/SystemConfig.vue'),
|
||||
meta: {
|
||||
title: '系统设置',
|
||||
icon: 'settings',
|
||||
showInMenu: true,
|
||||
showInUser:false,
|
||||
isHome:true
|
||||
isHome:false
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'center',
|
||||
component: () => import('@/views/layout/PersonalCenter.vue'),
|
||||
meta: {
|
||||
title: '个人中心',
|
||||
icon: 'user',
|
||||
showInMenu: false,
|
||||
showInUser:true,
|
||||
isHome:false
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user