From d4dc8a6da905fb4403c363234f71521764634791 Mon Sep 17 00:00:00 2001 From: liumangmang Date: Fri, 20 Mar 2026 17:03:10 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E8=BF=9B=E5=85=A5=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E6=97=B6=E6=B8=85=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 在 SftpView 增加 loadPath() 中 searchQuery.value = '',确保进入新目录时重置搜索条件。 改动: - SftpView.vue 第 196 行:loadPath() 加载前清空 searchQuery - 进入目录后不再受上次搜索条件影响 - 返回上一级也清空搜索条件 - 用户手动输入搜索仍可正常使用 --- frontend/src/views/SftpView.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/views/SftpView.vue b/frontend/src/views/SftpView.vue index 0211ce1..43c5e0e 100644 --- a/frontend/src/views/SftpView.vue +++ b/frontend/src/views/SftpView.vue @@ -193,6 +193,7 @@ function initPath() { function loadPath() { loading.value = true error.value = '' + searchQuery.value = '' sftpApi .listFiles(connectionId.value, currentPath.value) .then((res) => {