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