在开始一个新的项目的时候报了个错 [Vue warn]: Failed to mount component: template or render function not defined. (found in root insta
new Vue({ el: '#app', router, template: '<App/>', components: { App } })
我的项目初始化的时候是上面那个样子 。改成下面的样子就没问题。
new Vue({ el: '#app', router, store, render: h => h(App) })