設定好路由以後元件就是不跳轉而且不報錯原因竟是VueRouter的routes屬性被我敲成了 routers
// 錯誤程式碼
const router = new VueRouter({
mode: 'history',
routers
})// 改正後
const router = new VueRouter({
mode: 'history',
routes
})
設定好路由以後元件就是不跳轉而且不報錯原因竟是VueRouter的routes屬性被我敲成了 routers
// 錯誤程式碼
const router = new VueRouter({
mode: 'history',
routers
})// 改正後
const router = new VueRouter({
mode: 'history',
routes
})