在main.js中需要把组件挂载放在最下方。
new Vue({
el: '#app',
router,
store, // 使用Vuex
template: '<App/>',
components: { App }
})
在main.js中需要把组件挂载放在最下方。
new Vue({
el: '#app',
router,
store, // 使用Vuex
template: '<App/>',
components: { App }
})