|
@@ -146,10 +146,8 @@ export default defineComponent({
|
|
|
});
|
|
|
const firstItem = formatSelectFirstChild(res.data)
|
|
|
let list = filterPointList(res.data)
|
|
|
- list = selectFirstChild(list, firstItem.parentData?.ids || [])
|
|
|
+ list = selectFirstChild(list, firstItem?.parentData?.ids || [])
|
|
|
data.list = list;
|
|
|
-
|
|
|
- console.log(list, 'list')
|
|
|
|
|
|
list.forEach((item: any) => {
|
|
|
if(item.id === firstItem.parentData?.ids[0]) {
|
|
@@ -160,6 +158,7 @@ export default defineComponent({
|
|
|
}
|
|
|
} catch (error) {
|
|
|
//
|
|
|
+ console.log(error, 'error');
|
|
|
}
|
|
|
data.loading = false;
|
|
|
};
|