下班过目遇到一个错误
[Vue warn]: 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.
是项目引入的vue编译版本不对
解决方案1
build/webpack.base.conf.js 并设置vue的alias别名,如下:
解决方案2
打开src/main.js修改Vue对象初始化。
' })