Commit 10b63913ab6331d317cfd925bf44b58a800ef6a1
1 parent
28dd094a
fix: create tenant admin drawer loading close before fetch succes
Showing
1 changed file
with
4 additions
and
7 deletions
... | ... | @@ -160,14 +160,11 @@ |
160 | 160 | : null, |
161 | 161 | tenantId: tenantId.value, |
162 | 162 | }; |
163 | - saveTenantAdmin(requestParams as any as UserDTO).then(() => { | |
164 | - closeDrawer(); //关闭侧框 | |
165 | - emit('success'); | |
166 | - }); | |
163 | + await saveTenantAdmin(requestParams as any as UserDTO); | |
164 | + closeDrawer(); //关闭侧框 | |
165 | + emit('success'); | |
167 | 166 | } finally { |
168 | - setTimeout(() => { | |
169 | - setDrawerProps({ confirmLoading: false }); | |
170 | - }, 300); | |
167 | + setDrawerProps({ confirmLoading: false }); | |
171 | 168 | } |
172 | 169 | } |
173 | 170 | ... | ... |