This commit is contained in:
xing 2020-07-02 11:14:02 +08:00
parent 1a249cc92c
commit 0fb36be02d

View File

@ -34,23 +34,23 @@ const report = () => import(/* webpackChunkName: "login-home-order" */ '../compo
Vue.use(VueRouter)
const routes = [
{path: '/', redirect: '/login'},
{path: '/login', component: Login},
{ path: '/', redirect: '/login' },
{ path: '/login', component: Login },
{
path: '/home',
component: Home,
redirect: '/welcome',
children: [
{path: '/welcome', component: welcome},
{path: '/users', component: users},
{path: '/rights', component: access},
{path: '/roles', component: roles},
{path: '/categories', component: categories},
{path: '/params', component: params},
{path: '/goods', component: goods},
{path: '/goods/add', component: goodsEdit},
{path: '/orders', component: order},
{path: '/reports', component: report}
{ path: '/welcome', component: welcome },
{ path: '/users', component: users },
{ path: '/rights', component: access },
{ path: '/roles', component: roles },
{ path: '/categories', component: categories },
{ path: '/params', component: params },
{ path: '/goods', component: goods },
{ path: '/goods/add', component: goodsEdit },
{ path: '/orders', component: order },
{ path: '/reports', component: report }
]
}
]