From 5f5f40cb128b4c69da8a78aa9f298b9ffad8a698 Mon Sep 17 00:00:00 2001 From: zanllp Date: Sun, 1 Feb 2026 13:45:07 +0800 Subject: [PATCH] fix: open folders on right correctly --- vue/src/page/fileTransfer/hooks/useFileItemActions.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vue/src/page/fileTransfer/hooks/useFileItemActions.tsx b/vue/src/page/fileTransfer/hooks/useFileItemActions.tsx index deaec03..1143e5b 100644 --- a/vue/src/page/fileTransfer/hooks/useFileItemActions.tsx +++ b/vue/src/page/fileTransfer/hooks/useFileItemActions.tsx @@ -286,12 +286,16 @@ export function useFileItemActions ( tab = { panes: [], key: '', id: uniqueId() } global.tabList[props.value.tabIdx + 1] = tab } + const targetPath = file.type === 'dir' + ? file.fullpath + : Path.getParentDirectory(file.fullpath) const pane: FileTransferTabPane = { type: 'local', key: uniqueId(), - path: file.fullpath, + path: targetPath, name: t('local'), - stackKey: path + stackKey: path, + mode: props.value.mode ?? 'scanned' } tab.panes.push(pane) tab.key = pane.key