feat: update tree and state
This commit is contained in:
parent
457bb40a73
commit
52c18e6a6c
1 changed files with 10 additions and 0 deletions
|
|
@ -117,6 +117,16 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
currentIndexDropdownList = i;
|
currentIndexDropdownList = i;
|
||||||
|
const _idx = file.findIndex(
|
||||||
|
(v) => v.group === dropdownList?.[i].value,
|
||||||
|
);
|
||||||
|
if (_idx) {
|
||||||
|
currentIndex = _idx;
|
||||||
|
} else {
|
||||||
|
file.push({
|
||||||
|
group: dropdownList?.[i].value || 'other',
|
||||||
|
});
|
||||||
|
}
|
||||||
browse();
|
browse();
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue