前端拆分为单独项目来维护开发

This commit is contained in:
暮光:城中城
2019-05-17 18:23:03 +08:00
parent 13e390535d
commit 25b4089a8f
27 changed files with 12600 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import Home from './views/home/Home.vue'
import UserLogin from './views/user/Login.vue'
import UserRouterView from './views/user/RouterView.vue'
import CommonNoAuth from './views/common/NoAuth.vue'
let routes = [
{
path: '/home',
component: Home,
name: '主页',
meta: {
requireAuth: true,
}
}, {
path: '/user',
name: '用户管理',
component: UserRouterView,
children: [
{path: 'login', name: '系统登录',component: UserLogin, meta: {fullscreen: true}},
]
}, {
path: '/common',
name: '',
component: UserRouterView,
children: [
{path: 'noAuth', name: '没有权限',component: CommonNoAuth},
]
}, {
path: '/',
redirect: '/home'
}
];
export default routes;