🐛 fix: Fix error handling and loading state in CheckUpdates component
This commit is contained in:
parent
37429f722c
commit
91a113d09b
@ -47,11 +47,13 @@ export const CheckUpdates = ({ open, onCancel, onOk, row }) => {
|
||||
setUpdateLoading(true);
|
||||
if (!newPricing.length) {
|
||||
showError('请先获取数据');
|
||||
setUpdateLoading(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!overwrite && !addModel.length) {
|
||||
showError('没有新增模型');
|
||||
setUpdateLoading(false);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user