You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build
参考:https://blog.csdn.net/wxl1555/article/details/83187647
可实现:
main。js
new Vue({ router, store, render: h => h(App) }).$mount("#app")