mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-12 09:03:42 +08:00
perf: 运营设置-数据刷新逻辑
This commit is contained in:
@@ -46,13 +46,13 @@ export default function SettingsMagnification(props) {
|
||||
if (res.includes(undefined)) return showError('部分更新失败');
|
||||
}
|
||||
showSuccess('更新成功');
|
||||
props.refresh();
|
||||
})
|
||||
.catch(() => {
|
||||
showError('更新失败');
|
||||
})
|
||||
.finally(() => {
|
||||
setLoading(false);
|
||||
props.refresh();
|
||||
});
|
||||
} catch (error) {
|
||||
showError('请检查输入');
|
||||
|
||||
Reference in New Issue
Block a user