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

@@ -83,10 +83,16 @@ watch(
keyword.value = newKeyword;
handleSearch();
} else {
keyword.value = "";
keyword.value = resourcStore.keyword;
}
}
);
watch(
() => resourcStore.keyword,
(newKeyword) => {
keyword.value = newKeyword;
}
);
</script>
<style lang="scss" scoped>