Fix: 文件选择器进入目录时清空搜索条件
在 SftpFilePickerModal 增加 load() 中 searchQuery.value = '',确保文件选择器打开时或进入目录时重置搜索条件。 改动: - SftpFilePickerModal.vue 第 60 行:load() 加载前清空 searchQuery
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user