chameleon-tool
Version:
chameleon 脚手架工具
13 lines (8 loc) • 307 B
JavaScript
/*global Vue*/
import VueRouter from 'vue-router';
Vue.use(VueRouter);
// 根据配置生成的路由options
const routerOptions = '$ROUTER_OPTIONS';
routerOptions.mode = process.env.platform === 'web' ? routerOptions.mode : 'abstract';
const Router = new VueRouter(routerOptions)
export default Router