热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_39787242
Blink小精灵
4 年前
trueweixin_39787242

最近建了个面向学生的企业微信群,欢迎大家加入。Blink社区会时不时举行有奖活动,或邀请专家答疑解惑,届时会第一时间通知给群友。

我的假期日常
CSDN App 扫码分享
分享
1
6
打赏
  • 复制链接
  • 举报
下一条:
记录 vue动态生成组件并挂载至指定位置 使用的是Vue3版本的, 最后一句改成了这个 const app = createApp(Profile).mount("#挂载目标体"); 执行的时候警告错误:[Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js". 解决方法:引入的时候源码引入import { createApp } from 'vue/dist/vue.esm-bundler.js' 具体为什么没细看 参考:https://cloud.tencent.com/developer/article/1752948 动态加载需要的组件 图2
立即登录