![vue3[Vue warn]: Failed to resolve component: XXX If this is a native custom element, make sure to ex,第1张 vue3[Vue warn]: Failed to resolve component: XXX If this is a native custom element, make sure to ex,第1张](/aiimages/vue3%5BVue+warn%5D%3A+Failed+to+resolve+component%3A+XXX+If+this+is+a+native+custom+element%2C+make+sure+to+ex.png)
自定义标签存在,但是没有渲染
报错:
原因:
改正前:
<script>
import {milldeLayoutInMain} from "../../components/home/main/milldeLayoutInMain"
export default {
name: 'MainPage',
components:{
milldeLayoutInMain
}
}
script>
改正后
<script>
import milldeLayoutInMain from "../../components/home/main/milldeLayoutInMain"
export default {
name: 'MainPage',
components:{
milldeLayoutInMain
}
}
script>
效果:
**
**
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)