ratio must gte 0
This commit is contained in:
1 parent
9e8faac47b
commit
05db6660b2
3 files changed
+22
-9
No files matched your search
@@ -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();
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user