2019-05-17 18:23:03 +08:00
|
|
|
import Home from './views/home/Home.vue'
|
|
|
|
|
|
|
|
|
|
import UserLogin from './views/user/Login.vue'
|
2019-07-05 22:40:40 +08:00
|
|
|
import UserMyInfo from './views/user/MyInfo.vue'
|
2020-05-29 22:38:25 +08:00
|
|
|
import CommonRouterView from './components/layouts/PageView'
|
2019-05-17 18:23:03 +08:00
|
|
|
|
2019-05-30 22:45:22 +08:00
|
|
|
import PageShow from './views/page/Show.vue'
|
2019-06-01 23:03:10 +08:00
|
|
|
import PageEdit from './views/page/Edit.vue'
|
2019-07-11 23:36:30 +08:00
|
|
|
import PageSearch from './views/page/Search.vue'
|
2019-05-30 22:45:22 +08:00
|
|
|
|
2019-05-17 18:23:03 +08:00
|
|
|
import CommonNoAuth from './views/common/NoAuth.vue'
|
|
|
|
|
|
|
|
|
|
let routes = [
|
2020-05-29 22:38:25 +08:00
|
|
|
{
|
|
|
|
|
path: '/home',
|
|
|
|
|
component: Home,
|
|
|
|
|
name: '主页',
|
|
|
|
|
meta: {
|
|
|
|
|
requireAuth: true,
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
path: '/',
|
|
|
|
|
redirect: '/home'
|
|
|
|
|
}, {
|
|
|
|
|
path: '/',
|
|
|
|
|
name: '用户管理',
|
|
|
|
|
component: CommonRouterView,
|
|
|
|
|
children: [
|
|
|
|
|
{path: '/user/login', name: '系统登录', component: UserLogin, meta: {fullscreen: true}},
|
|
|
|
|
{path: '/user/myInfo', name: '我的信息', component: UserMyInfo},
|
|
|
|
|
{path: '/page/show', name: '页面内容展示', component: PageShow},
|
|
|
|
|
{path: '/page/edit', name: '编辑内容', component: PageEdit},
|
|
|
|
|
{path: '/page/search', name: '全局搜索', component: PageSearch, meta: {fullscreen: true}},
|
|
|
|
|
{path: '/common/noAuth', name: '没有权限', component: CommonNoAuth},
|
|
|
|
|
]
|
|
|
|
|
}
|
2019-05-17 18:23:03 +08:00
|
|
|
];
|
|
|
|
|
|
|
|
|
|
export default routes;
|