index.js
640 Bytes
const home = r => require.ensure([], () => r(require('./login')), 'login');
const error = r => require.ensure([], () => r(require('./error')), 'error');
const router = [{
path: '/login.html',
name: 'login',
component: home,
meta: {
authPass: true
}
}, {
path: '/401.html',
name: 'error.401',
component: error,
meta: {
authPass: true
}
}, {
path: '*',
name: 'error.404',
component: error,
meta: {
authPass: true
}
}, {
path: '/500.html',
name: 'error.500',
component: error,
meta: {
authPass: true
}
}];
export default router;