mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
提交
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user