优化代码

pull/43/MERGE
smallbun 2023-09-08 22:20:20 +08:00
parent e974422086
commit f3456da2ad
1 changed files with 4 additions and 1 deletions

View File

@ -53,8 +53,11 @@ export default (props: {
onCancel: onCancel,
}}
onFinish={(formData: { password: string }) => {
setLoading(true);
const password = Base64.encode(formData.password, true);
return onFinish({ id, password });
onFinish({ id, password }).finally(() => {
setLoading(false);
});
}}
>
<Spin spinning={loading}>