fix:优化搜索逻辑

This commit is contained in:
jiangrui
2025-03-07 23:21:24 +08:00
parent a04f16bfa4
commit eedd68d137
6 changed files with 62 additions and 17 deletions

View File

@@ -81,10 +81,16 @@ watch(
searchForm.value.keyword = keyword;
handleSearch();
} else {
searchForm.value.keyword = "";
searchForm.value.keyword = resourceStore.keyword;
}
}
);
watch(
() => resourceStore.keyword,
(newKeyword) => {
searchForm.value.keyword = newKeyword;
}
);
// 方法定义
const handleSearch = async () => {