feat: update tree and state

This commit is contained in:
Methapon Metanipat 2024-08-28 14:44:06 +07:00
parent 457bb40a73
commit 52c18e6a6c

View file

@ -117,6 +117,16 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
@click="
() => {
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();
}
"