Browse Source

fix: 文件夹选择控件,选择文件时不默认选择当前目录 (#6799)

Refs #6012
pull/6801/head
1 month ago committed by GitHub
parent
commit
270501a237
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      frontend/src/components/file-list/index.vue

8
frontend/src/components/file-list/index.vue

@ -188,7 +188,7 @@ const closePage = () => {
const openPage = () => {
popoverVisible.value = true;
selectRow.value.path = props.path || '/';
selectRow.value.path = props.dir ? props.path || '/' : '';
rowName.value = '';
};
@ -216,7 +216,7 @@ const open = async (row: File.File) => {
}
await search(req);
}
selectRow.value.path = req.path;
selectRow.value.path = props.dir ? req.path : '';
rowName.value = '';
};
@ -230,7 +230,7 @@ const jump = async (index: number) => {
}
path = path || '/';
req.path = path;
selectRow.value.path = req.path;
selectRow.value.path = props.dir ? req.path : '';
rowName.value = '';
await search(req);
popoverVisible.value = true;
@ -286,7 +286,7 @@ const cancelFolder = (row: any) => {
data.value.shift();
row.isCreate = false;
disBtn.value = false;
selectRow.value.path = req.path;
selectRow.value.path = props.dir ? req.path : '';
rowName.value = '';
newFolder.value = '';
};

Loading…
Cancel
Save