nav.vue組件里是這么寫的main.js里Vue.use(VueRouter);const routes = [{ path: '/home', component: Shop },{ path: '/long', component: LongTerm }]const router = new VueRouter({routes: routes})const app = new Vue({ el: '#inner',
render: h => h(Shop)})第一頁Shop都已經加載出來了,然后router-link就報錯了,里面的值也沒有顯示出來
webpack+vue路由,為什么router-link會報錯
吃雞游戲
2018-11-29 13:34:54