This commit is contained in:
zmj 2024-06-11 17:27:20 +08:00
parent 032993ccc9
commit f684436210
1 changed files with 3 additions and 2 deletions

View File

@ -229,6 +229,7 @@
const show = ref(0);
const topActive = ref(0);
const changeOne = async (item, index) => {
console.log(item)
topActive.value = item.id;
show.value = 0;
goodClassTow.value = item?.children || [];
@ -236,7 +237,7 @@
leftActive.value = goodClassTow.value[0]?.id || '';
rightActive.value = goodClassThree.value[0]?.id || '';
getGoodList();
if (!item.isLoading && item.id) getgoodClassList(topActive.value); // , ,
if (!item.isLoading && item.id) getgoodClassList(topActive.value, 2); // , ,
}
const leftActive = ref(0);
@ -246,7 +247,7 @@
goodClassThree.value = item?.children || [];
rightActive.value = goodClassThree.value[0]?.id || '';
getGoodList();
if (!item.isLoading && item.id) getgoodClassList(leftActive.value, 2); // , ,
if (!item.isLoading && item.id) getgoodClassList(leftActive.value, 3); // , ,
}
const rightActive = ref(0);