Fix: 进入目录时清空搜索条件
在 SftpView 增加 loadPath() 中 searchQuery.value = '',确保进入新目录时重置搜索条件。 改动: - SftpView.vue 第 196 行:loadPath() 加载前清空 searchQuery - 进入目录后不再受上次搜索条件影响 - 返回上一级也清空搜索条件 - 用户手动输入搜索仍可正常使用
This commit is contained in:
@@ -193,6 +193,7 @@ function initPath() {
|
|||||||
function loadPath() {
|
function loadPath() {
|
||||||
loading.value = true
|
loading.value = true
|
||||||
error.value = ''
|
error.value = ''
|
||||||
|
searchQuery.value = ''
|
||||||
sftpApi
|
sftpApi
|
||||||
.listFiles(connectionId.value, currentPath.value)
|
.listFiles(connectionId.value, currentPath.value)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user