??
This commit is contained in:
parent
1a249cc92c
commit
0fb36be02d
|
@ -34,23 +34,23 @@ const report = () => import(/* webpackChunkName: "login-home-order" */ '../compo
|
||||||
Vue.use(VueRouter)
|
Vue.use(VueRouter)
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{path: '/', redirect: '/login'},
|
{ path: '/', redirect: '/login' },
|
||||||
{path: '/login', component: Login},
|
{ path: '/login', component: Login },
|
||||||
{
|
{
|
||||||
path: '/home',
|
path: '/home',
|
||||||
component: Home,
|
component: Home,
|
||||||
redirect: '/welcome',
|
redirect: '/welcome',
|
||||||
children: [
|
children: [
|
||||||
{path: '/welcome', component: welcome},
|
{ path: '/welcome', component: welcome },
|
||||||
{path: '/users', component: users},
|
{ path: '/users', component: users },
|
||||||
{path: '/rights', component: access},
|
{ path: '/rights', component: access },
|
||||||
{path: '/roles', component: roles},
|
{ path: '/roles', component: roles },
|
||||||
{path: '/categories', component: categories},
|
{ path: '/categories', component: categories },
|
||||||
{path: '/params', component: params},
|
{ path: '/params', component: params },
|
||||||
{path: '/goods', component: goods},
|
{ path: '/goods', component: goods },
|
||||||
{path: '/goods/add', component: goodsEdit},
|
{ path: '/goods/add', component: goodsEdit },
|
||||||
{path: '/orders', component: order},
|
{ path: '/orders', component: order },
|
||||||
{path: '/reports', component: report}
|
{ path: '/reports', component: report }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user