From 0fb36be02d186328445695f110b1df0e638628fd Mon Sep 17 00:00:00 2001 From: xing Date: Thu, 2 Jul 2020 11:14:02 +0800 Subject: [PATCH] ?? --- src/router/router.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/router/router.js b/src/router/router.js index cbaa908..eefc62d 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -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 } ] } ]