router配置
main.js
import {router} from './router.js'
new Vue({
el: '#app',
store,
router,
axios,
render: h => h(App)
})
router.js
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routeConfig.js'
Vue.use(VueRouter)
export
原创
2020-10-09 16:47:23 ·
350 阅读 ·
0 评论