From e2656fb1b59605d32eb4428fdf7753225ee0c29e Mon Sep 17 00:00:00 2001 From: liumangmang Date: Fri, 20 Mar 2026 17:50:39 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E6=96=87=E4=BB=B6=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E5=99=A8=E8=BF=9B=E5=85=A5=E7=9B=AE=E5=BD=95=E6=97=B6=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E6=90=9C=E7=B4=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 SftpFilePickerModal 增加 load() 中 searchQuery.value = '',确保文件选择器打开时或进入目录时重置搜索条件。 改动: - SftpFilePickerModal.vue 第 60 行:load() 加载前清空 searchQuery --- frontend/src/components/SftpFilePickerModal.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/SftpFilePickerModal.vue b/frontend/src/components/SftpFilePickerModal.vue index 8d482ff..da486da 100644 --- a/frontend/src/components/SftpFilePickerModal.vue +++ b/frontend/src/components/SftpFilePickerModal.vue @@ -55,6 +55,7 @@ async function load() { if (!canInteract.value || props.connectionId == null) return loading.value = true error.value = '' + searchQuery.value = '' try { const res = await sftpApi.listFiles(props.connectionId, currentPath.value) files.value = res.data