Showing
1 changed file
with
4 additions
and
2 deletions
| ... | ... | @@ -90,8 +90,8 @@ |
| 90 | 90 | }; |
| 91 | 91 | |
| 92 | 92 | async function handleSubmit() { |
| 93 | + setDrawerProps({ confirmLoading: true }); | |
| 93 | 94 | try { |
| 94 | - setDrawerProps({ confirmLoading: true }); | |
| 95 | 95 | if (!unref(isUpdate)) { |
| 96 | 96 | getAllFieldsFunc(); |
| 97 | 97 | await saveTenantProfileApi(postAllData); |
| ... | ... | @@ -108,7 +108,9 @@ |
| 108 | 108 | } |
| 109 | 109 | } catch (e) { |
| 110 | 110 | } finally { |
| 111 | - setDrawerProps({ confirmLoading: false }); | |
| 111 | + setTimeout(() => { | |
| 112 | + setDrawerProps({ confirmLoading: false }); | |
| 113 | + }, 300); | |
| 112 | 114 | } |
| 113 | 115 | } |
| 114 | 116 | return { | ... | ... |