Showing
1 changed file
with
9 additions
and
5 deletions
| @@ -133,12 +133,16 @@ | @@ -133,12 +133,16 @@ | ||
| 133 | entityType: 'TENANT_PROFILE', | 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 | } catch (e) { | 145 | } catch (e) { |
| 140 | - const { createMessage } = useMessage(); | ||
| 141 | - createMessage.error("Can't use isolated tenant profiles in monolith setup!"); | ||
| 142 | } finally { | 146 | } finally { |
| 143 | setDrawerProps({ | 147 | setDrawerProps({ |
| 144 | confirmLoading: false, | 148 | confirmLoading: false, |