fix: tree Not uploaded

This commit is contained in:
Net 2024-08-29 11:52:08 +07:00
parent 0471cf56ae
commit eedee18a0e

View file

@ -125,17 +125,19 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
@click=" @click="
() => { () => {
currentIndexDropdownList = i; currentIndexDropdownList = i;
const _idx = file.findIndex( currentIndex = file.length + 1;
(v) => v.group === dropdownList?.[i].value,
); // const _idx = file.findIndex(
if (_idx !== -1) { // (v: any) => v.group === dropdownList?.[i].value,
currentIndex = _idx; // );
} else { // if (_idx !== -1) {
file.push({ // currentIndex = _idx;
group: dropdownList?.[i].value || 'other', // } else {
}); // file.push({
currentIndex = file.length - 1; // group: dropdownList?.[i].value || 'other',
} // });
// currentIndex = file.length - 1;
// }
browse(); browse();
} }
" "