可能是我比較搞事情,錯誤代碼如下
//路由router
import Router from './router'
new Vue({
el: '#app',
Router, //這裡的Router要寫成router,不然出錯,相應的import部分也要改
Store,
components: { App },
template: '<App/>'
})
額 額額,這樣的錯誤讓人頭痛。
可能是我比較搞事情,錯誤代碼如下
//路由router
import Router from './router'
new Vue({
el: '#app',
Router, //這裡的Router要寫成router,不然出錯,相應的import部分也要改
Store,
components: { App },
template: '<App/>'
})
額 額額,這樣的錯誤讓人頭痛。