Fix: 文件选择器进入目录时清空搜索条件

在 SftpFilePickerModal 增加 load() 中 searchQuery.value = '',确保文件选择器打开时或进入目录时重置搜索条件。

改动:
- SftpFilePickerModal.vue 第 60 行:load() 加载前清空 searchQuery
This commit is contained in:
liumangmang
2026-03-20 17:50:39 +08:00
parent d4dc8a6da9
commit e2656fb1b5

View File

@@ -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