{"size": 412, "ext": "js", "max_stars_repo_path": "03-vue/vue项目部分/vue-cli3多页面配置/multi-page-project/src/pages/page2/router/index.js", "max_stars_repo_name": "btWin9527/qq_study", "max_stars_repo_stars_event_min_datetime": "2019-12-05T09:35:09.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-22T11:44:44.000Z", "max_issues_repo_path": "03-vue/vue项目部分/vue-cli3多页面配置/multi-page-project/src/pages/page2/router/index.js", "max_issues_repo_name": "btWin9527/qq_study", "max_issues_repo_issues_event_min_datetime": "2019-12-05T09:14:26.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T04:50:33.000Z", "max_forks_repo_path": "03-vue/vue项目部分/vue-cli3多页面配置/multi-page-project/src/pages/page2/router/index.js", "max_forks_repo_name": "btWin9527/qq_study", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": 37, "max_forks_count": null, "avg_line_length": 15.8461538462, "max_line_length": 49, "alphanum_fraction": 0.5436893204}
import Vue from 'vue'
import Router from 'vue-router'

// 首页
const Home = (resolve => {
    require.ensure(['../views/home.vue'], () => {
        resolve(require('../views/home.vue'))
    })
})

Vue.use(Router)

let base = `${process.env.BASE_URL}` + 'page2'

export default new Router({
  mode: 'history',
  base: base,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
  ]
})
