Commit d47d90e1 authored by 黄奎's avatar 黄奎

新增页面

parent 6e9e77a2
const routes = [{
path: '/',
path: '/',
component: () =>
import('pages/user/login.vue')
},
{
path: '/login',
component: () =>
import('pages/user/login.vue')
},
{
path: '/home',
component: () =>
import('layouts/MainLayout.vue'),
children: [{
path: '',
component: () =>
import ('pages/user/login.vue')
},
{
path: '/login',
import('pages/Index.vue')
},
{
path: '/school/manager',
component: () =>
import ('pages/user/login.vue')
},
{
path: '/home',
import('pages/school/manager.vue')
},
{
path: '/school',
component: () =>
import ('layouts/MainLayout.vue'),
children: [{
path: '',
component: () =>
import ('pages/Index.vue')
},
{
path: '/school/manager',
component: () =>
import ('pages/school/manager.vue')
}
]
},
import('pages/school/school.vue')
},
]
},
// Always leave this as last one,
// but you can also remove it
{
path: '*',
component: () =>
import ('pages/Error404.vue')
}
// Always leave this as last one,
// but you can also remove it
{
path: '*',
component: () =>
import('pages/Error404.vue')
}
]
export default routes
\ No newline at end of file
export default routes
......@@ -4,6 +4,8 @@ import user from './modules/user'
import permission from './modules/permission'
import app from './modules/app'
import getters from './getters'
import school from './modules/school'
Vue.use(Vuex)
// export default function( /* { ssrContext } */ ) {
......@@ -25,7 +27,8 @@ const store = new Vuex.Store({
modules: {
user,
permission,
app
app,
school
},
getters,
strict: process.env.DEV
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment