ratio must gte 0

This commit is contained in:
liuzhifei
2024-09-20 18:09:40 +08:00
parent 4eae3b2177
commit 1d064a2e88
3 changed files with 22 additions and 9 deletions

View File

@@ -50,6 +50,11 @@ export default function SettingsMagnification(props) {
if (res.includes(undefined))
return showError('部分保存失败,请重试');
}
for (let i = 0; i < res.length; i++) {
if (!res[i].success) {
return showError(res[i].message)
}
}
showSuccess('保存成功');
props.refresh();
})