perf: 运营设置-数据刷新逻辑

This commit is contained in:
QuentinHsu
2024-05-14 10:17:20 +08:00
parent 98c347e048
commit 65ae70919b
8 changed files with 9 additions and 9 deletions

View File

@@ -40,16 +40,16 @@ export default function SettingsCreditLimit(props) {
if (requestQueue.length === 1) {
if (res.includes(undefined)) return;
} else if (requestQueue.length > 1) {
if (res.includes(undefined)) return showError('部分更新失败');
if (res.includes(undefined)) return showError('部分更新失败,请重试');
}
showSuccess('更新成功');
props.refresh();
})
.catch(() => {
showError('更新失败');
})
.finally(() => {
setLoading(false);
props.refresh();
});
}