Commit b80ed97d authored by XieZhiXiong's avatar XieZhiXiong

fix: 新增成功申请单 loading 一直展示,防止重复点击

parent 43fd9ce5
......@@ -384,9 +384,11 @@ const ExchangeForm: React.FC<BillsFormProps> = ({
setTimeout(() => {
history.goBack();
}, 800);
} else {
setSubmitLoading(false);
}
})
.finally(() => {
.catch(() => {
setSubmitLoading(false);
});
};
......
......@@ -233,9 +233,11 @@ const RepairForm: React.FC<BillsFormProps> = ({
setTimeout(() => {
history.goBack();
}, 800);
} else {
setSubmitLoading(false);
}
})
.finally(() => {
.catch(() => {
setSubmitLoading(false);
});
};
......
......@@ -398,9 +398,11 @@ const ReturnForm: React.FC<BillsFormProps> = ({
setTimeout(() => {
history.goBack();
}, 800);
} else {
setSubmitLoading(false);
}
})
.finally(() => {
.catch(() => {
setSubmitLoading(false);
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment