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"
|
class="q-ml-sm"
|
||||||
@click="
|
@click="
|
||||||
() => {
|
() => {
|
||||||
const tempValue = treeFile.find((v) => v.label === currentMode);
|
const tempValue = treeFile.find(
|
||||||
|
(v: any) => v.label === $t(currentMode),
|
||||||
|
);
|
||||||
|
|
||||||
if (!tempValue) return;
|
if (!tempValue) return;
|
||||||
|
|
||||||
const idx = tempValue.file?.findIndex(
|
const idx = tempValue.file?.findIndex(
|
||||||
(v) => v.label === currentFileSelected,
|
(v: any) => v.label === currentFileSelected,
|
||||||
);
|
);
|
||||||
|
|
||||||
dialog({
|
dialog({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue