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="
() => {
currentIndexDropdownList = i;
const _idx = file.findIndex(
(v) => v.group === dropdownList?.[i].value,
);
if (_idx !== -1) {
currentIndex = _idx;
} else {
file.push({
group: dropdownList?.[i].value || 'other',
});
currentIndex = file.length - 1;
}
currentIndex = file.length + 1;
// const _idx = file.findIndex(
// (v: any) => v.group === dropdownList?.[i].value,
// );
// if (_idx !== -1) {
// currentIndex = _idx;
// } else {
// file.push({
// group: dropdownList?.[i].value || 'other',
// });
// currentIndex = file.length - 1;
// }
browse();
}
"