This commit is contained in:
Pengxiansen
2025-02-19 15:23:15 +08:00
parent 6dc9ac9480
commit 93486ee646
2 changed files with 3 additions and 3 deletions

View File

@@ -361,12 +361,12 @@ export function useThrottlePage(_url, params = {}, init = true) {
...params
});
watch(() => params.keyword, throttle(fetch, 600));
watch(() => params.name, throttle(fetch, 600));
watch(() => params.page, fetch);
function fetch() {
state.loading = true;
if (!params.keyword) {
if (!params.name) {
state.loading = false;
return;
}