路由中使用多文件
//users.js
module.export = [ { path: '/', component: 'Home' } ];
//pages.js
module.export = [ { path: '/about', component: 'About' } ];
//router.js
var usersRoute = require('./routes/users');
var pagesRoute = require('./routes/pages');
var routeLists = [];
var routes = routeLists.concat(usersRoute, pagesRoute);
export default new VueRouter({
routes,
linkActiveClass: "is-active",
mode