Fix: 进入目录时清空搜索条件

在 SftpView 增加 loadPath() 中 searchQuery.value = '',确保进入新目录时重置搜索条件。

改动:
- SftpView.vue 第 196 行:loadPath() 加载前清空 searchQuery

- 进入目录后不再受上次搜索条件影响
- 返回上一级也清空搜索条件
- 用户手动输入搜索仍可正常使用
This commit is contained in:
liumangmang
2026-03-20 17:03:10 +08:00
parent a9cfef37c2
commit d4dc8a6da9

View File

@@ -193,6 +193,7 @@ function initPath() {
function loadPath() {
loading.value = true
error.value = ''
searchQuery.value = ''
sftpApi
.listFiles(connectionId.value, currentPath.value)
.then((res) => {