From 5d0a4c597bbe100f8666dc77228e0be590650128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=98=AD?= <81747598+lan-yonghui@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:40:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E4=BB=B6=E5=A4=B9=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=8E=A7=E4=BB=B6=EF=BC=8C=E9=80=89=E6=8B=A9=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E4=B8=8D=E9=BB=98=E8=AE=A4=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=BD=93=E5=89=8D=E7=9B=AE=E5=BD=95=20(#6799)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #6012 --- frontend/src/components/file-list/index.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/file-list/index.vue b/frontend/src/components/file-list/index.vue index 3eaf92b5a..4866010b9 100644 --- a/frontend/src/components/file-list/index.vue +++ b/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 = ''; };