Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions client/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import Router from 'vue-router'
import menuModule from 'vuex-store/modules/menu'
Vue.use(Router)

const Home = resolve => require(['../views/Home.vue'], resolve)
const Login = resolve => require(['../views/auth/Login.vue'], resolve)

export default new Router({
mode: 'hash', // Demo is living in GitHub.io, so required!
linkActiveClass: 'is-active',
Expand All @@ -11,12 +14,12 @@ export default new Router({
{
name: 'Home',
path: '/',
component: require('../views/Home')
component: Home
},
{
name: 'Login',
path: '/login',
component: require('../views/auth/Login')
component: Login
},
...generateRoutesFromMenu(menuModule.state.items),
{
Expand Down