Showing
1 changed file
with
4 additions
and
0 deletions
... | ... | @@ -40,6 +40,8 @@ |
40 | 40 | import { FileItem } from '/@/components/Upload/src/typing'; |
41 | 41 | import { upload } from '/@/api/oss/ossFileUploader'; |
42 | 42 | import { getTenantRoles, updateOrCreateTenant } from '/@/api/tenant/tenantApi'; |
43 | + import { useMessage } from '/@/hooks/web/useMessage'; | |
44 | + | |
43 | 45 | export default defineComponent({ |
44 | 46 | name: 'TenantDrawer', |
45 | 47 | components: { |
... | ... | @@ -52,6 +54,7 @@ |
52 | 54 | emits: ['success', 'register'], |
53 | 55 | setup(_, { emit }) { |
54 | 56 | const loading = ref(false); |
57 | + const { createMessage } = useMessage(); | |
55 | 58 | |
56 | 59 | const isUpdate = ref(true); |
57 | 60 | const tenantLogo = ref(''); |
... | ... | @@ -141,6 +144,7 @@ |
141 | 144 | }; |
142 | 145 | await updateOrCreateTenant(req); |
143 | 146 | emit('success'); |
147 | + createMessage.success(`${unref(isUpdate) ? '编辑' : '新增'}成功`); | |
144 | 148 | closeDrawer(); //关闭侧框 |
145 | 149 | } catch (e) { |
146 | 150 | if ((e as { code: string }).code === 'ECONNABORTED') { | ... | ... |