import component from './artificial/index.vue'
const lists= ref([])
res.data.forEach((item,index) => {
const num= (index + 1) * 10;
let listObj = [
{ id: num+1, name:'zhna', component: markRaw(component ) },
{ id: num+2, name:'ddf', component: markRaw(component 1) },
{ id: num+3, name:'sdg', component: markRaw(component 2)},
]
//深拷贝导致动态组件无法正常使用
item.list = listObj//JSON.parse(JSON.stringify(listObj))
});
lists.value = res.data;