fix: tree Not uploaded
This commit is contained in:
parent
0471cf56ae
commit
eedee18a0e
1 changed files with 13 additions and 11 deletions
|
|
@ -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();
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue