Merge remote-tracking branch 'yx/compulsory_professional_skills_test' into master_1202

This commit is contained in:
joshen
2025-02-19 15:24:06 +08:00
2 changed files with 3 additions and 3 deletions

View File

@@ -363,12 +363,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;
}