改为使用vue-cli打包,修改所有的请求方式
This commit is contained in:
@@ -2,51 +2,38 @@ import Home from './views/home/Home.vue'
|
||||
|
||||
import UserLogin from './views/user/Login.vue'
|
||||
import UserMyInfo from './views/user/MyInfo.vue'
|
||||
import UserRouterView from './views/user/RouterView.vue'
|
||||
import CommonRouterView from './components/layouts/PageView'
|
||||
|
||||
import PageShow from './views/page/Show.vue'
|
||||
import PageEdit from './views/page/Edit.vue'
|
||||
import PageSearch from './views/page/Search.vue'
|
||||
import PageRouterView from './views/page/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: 'myInfo', name: '我的信息',component: UserMyInfo},
|
||||
]
|
||||
}, {
|
||||
path: '/page',
|
||||
name: '页面',
|
||||
component: PageRouterView,
|
||||
children: [
|
||||
{path: 'show', name: '页面内容展示',component: PageShow},
|
||||
{path: 'edit', name: '编辑内容',component: PageEdit},
|
||||
{path: 'search', name: '全局搜索',component: PageSearch, meta: {fullscreen: true}},
|
||||
]
|
||||
}, {
|
||||
path: '/common',
|
||||
name: '',
|
||||
component: UserRouterView,
|
||||
children: [
|
||||
{path: 'noAuth', name: '没有权限',component: CommonNoAuth},
|
||||
]
|
||||
}, {
|
||||
path: '/',
|
||||
redirect: '/home'
|
||||
}
|
||||
{
|
||||
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},
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
export default routes;
|
||||
|
||||
Reference in New Issue
Block a user