Commit 128152b7ab7d73acb44c9cea04417b07a5266219
1 parent
6f9f5d40
fix:DEFECT-825 新增租户时,有未填入项,然后点确认一直转圈,需要点取消和刷新才能重新操作,编辑也一样
Showing
1 changed file
with
4 additions
and
1 deletions
@@ -142,6 +142,7 @@ | @@ -142,6 +142,7 @@ | ||
142 | }; | 142 | }; |
143 | updateOrCreateTenant(req) | 143 | updateOrCreateTenant(req) |
144 | .then((res) => { | 144 | .then((res) => { |
145 | + console.log(res); | ||
145 | closeDrawer(); //关闭侧框 | 146 | closeDrawer(); //关闭侧框 |
146 | emit('success'); | 147 | emit('success'); |
147 | setTimeout(() => { | 148 | setTimeout(() => { |
@@ -159,9 +160,11 @@ | @@ -159,9 +160,11 @@ | ||
159 | }); | 160 | }); |
160 | } catch (e) { | 161 | } catch (e) { |
161 | } finally { | 162 | } finally { |
163 | + setTimeout(() => { | ||
164 | + setDrawerProps({ confirmLoading: false }); | ||
165 | + }, 300); | ||
162 | } | 166 | } |
163 | } | 167 | } |
164 | - | ||
165 | return { | 168 | return { |
166 | registerDrawer, | 169 | registerDrawer, |
167 | tenantForm, | 170 | tenantForm, |