Showing
1 changed file
with
9 additions
and
5 deletions
| ... | ... | @@ -133,12 +133,16 @@ |
| 133 | 133 | entityType: 'TENANT_PROFILE', |
| 134 | 134 | }, |
| 135 | 135 | }; |
| 136 | - await updateOrCreateTenant(req); | |
| 137 | - closeDrawer(); //关闭侧框 | |
| 138 | - emit('success'); | |
| 136 | + updateOrCreateTenant(req) | |
| 137 | + .then((res) => { | |
| 138 | + closeDrawer(); //关闭侧框 | |
| 139 | + emit('success'); | |
| 140 | + }) | |
| 141 | + .catch((e) => { | |
| 142 | + const { createMessage } = useMessage(); | |
| 143 | + createMessage.error(`${e.message}`); | |
| 144 | + }); | |
| 139 | 145 | } catch (e) { |
| 140 | - const { createMessage } = useMessage(); | |
| 141 | - createMessage.error("Can't use isolated tenant profiles in monolith setup!"); | |
| 142 | 146 | } finally { |
| 143 | 147 | setDrawerProps({ |
| 144 | 148 | confirmLoading: false, | ... | ... |