diff --git a/src/components/upload-file/UploadFile.vue b/src/components/upload-file/UploadFile.vue index 0bc1610a..f785a150 100644 --- a/src/components/upload-file/UploadFile.vue +++ b/src/components/upload-file/UploadFile.vue @@ -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(); } "