父组件:item.index.vue
<template>
<div>
<compoent :is="comp"></compoent>
</div>
</template>
<script>
export default {
computed: {
comp: function () {
return import('./component/item1.form')
}
},
}
</script>
子组件:item1.form.vue
<template>
<div>
111
</div>
</template>
<script>
export default {
data () {
return {
msg: 'hello'
};
}
};
</script>
报错信息
慕少森