企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 注意事项 ### el绑定更改 更改之后渲染元素的语法部分发生了变化,原先是绑定el配置项,现在是通过下面的方式。 如果不做更改,浏览器会报错:[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.(vuex以及store的接入方式均没有发生改变) ``` /* eslint-disable no-new */ export default new Vue({ render: h => h(App), }).$mount('#app'); ``` 原来的方式: ``` /* eslint-disable no-new */ export default new Vue({ el: "#app", }); ``` ### 新的配置文件 [新的vue.config.js配置文档](https://cli.vuejs.org/zh/config/#%E5%85%A8%E5%B1%80-cli-%E9%85%8D%E7%BD%AE) ## 参考文档 - [vue-cli3.x官方文档](https://cli.vuejs.org/zh/guide/)