优化编辑用户逻辑

This commit is contained in:
CaIon 2023-11-30 22:30:28 +08:00
parent adfabaa12c
commit cddcf9caaa

View File

@ -288,7 +288,11 @@ const UsersTable = () => {
} }
const refresh = async () => { const refresh = async () => {
if (searchKeyword === '') {
await loadUsers(activePage - 1); await loadUsers(activePage - 1);
} else {
await searchUsers();
}
}; };
return ( return (