fix: Can't delete
This commit is contained in:
parent
eedee18a0e
commit
1b8393784b
1 changed files with 4 additions and 2 deletions
|
|
@ -279,12 +279,14 @@ const { pdf, pages } = usePDF(computed(() => currentFile.value?.url));
|
|||
class="q-ml-sm"
|
||||
@click="
|
||||
() => {
|
||||
const tempValue = treeFile.find((v) => v.label === currentMode);
|
||||
const tempValue = treeFile.find(
|
||||
(v: any) => v.label === $t(currentMode),
|
||||
);
|
||||
|
||||
if (!tempValue) return;
|
||||
|
||||
const idx = tempValue.file?.findIndex(
|
||||
(v) => v.label === currentFileSelected,
|
||||
(v: any) => v.label === currentFileSelected,
|
||||
);
|
||||
|
||||
dialog({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue