From 611825b0f7341f4d08b945a9f8bba98ebf2d0b1a Mon Sep 17 00:00:00 2001 From: xingyu Date: Thu, 27 Apr 2023 12:57:37 +0800 Subject: [PATCH] fix: sucess message --- src/views/base/profile/PasswordModal.vue | 2 +- src/views/bpm/group/GroupModal.vue | 2 +- src/views/bpm/model/ModelModal.vue | 2 +- src/views/infra/config/ConfigModal.vue | 2 +- src/views/infra/dataSourceConfig/DataSourceConfigModal.vue | 2 +- src/views/infra/job/JobModal.vue | 2 +- src/views/mp/account/AccountModal.vue | 2 +- src/views/mp/message/MessageModal.vue | 2 +- src/views/mp/tag/TagModal.vue | 2 +- src/views/mp/user/MpUserModal.vue | 2 +- src/views/pay/app/AppModal.vue | 2 +- src/views/pay/merchant/MerchantModal.vue | 2 +- src/views/system/dept/DeptModal.vue | 2 +- src/views/system/dict/DictDataModal.vue | 2 +- src/views/system/dict/DictTypeModal.vue | 2 +- src/views/system/errorCode/ErrorCodeModal.vue | 2 +- src/views/system/mail/account/AccountModal.vue | 2 +- src/views/system/mail/template/TemplateModal.vue | 2 +- src/views/system/menu/MenuModal.vue | 2 +- src/views/system/notice/NoticeModal.vue | 2 +- src/views/system/notify/template/TemplateModal.vue | 2 +- src/views/system/oauth2/client/ClientModal.vue | 2 +- src/views/system/post/PostModal.vue | 2 +- src/views/system/role/RoleMenuModal.vue | 2 +- src/views/system/role/RoleModal.vue | 2 +- src/views/system/role/RoleScopeModal.vue | 2 +- src/views/system/sensitiveWord/SensitiveWordModal.vue | 2 +- src/views/system/sms/channel/SmsChannelModal.vue | 2 +- src/views/system/sms/template/SmsTemplateModal.vue | 2 +- src/views/system/tenant/TenantModal.vue | 2 +- src/views/system/tenantPackage/TenantPackageModal.vue | 2 +- src/views/system/user/ResetPwdModal.vue | 2 +- src/views/system/user/UserModal.vue | 2 +- src/views/system/user/UserRoleModal.vue | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/src/views/base/profile/PasswordModal.vue b/src/views/base/profile/PasswordModal.vue index a8867b73..61dff30d 100644 --- a/src/views/base/profile/PasswordModal.vue +++ b/src/views/base/profile/PasswordModal.vue @@ -38,8 +38,8 @@ async function handleSubmit() { setModalProps({ confirmLoading: true }) closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/bpm/group/GroupModal.vue b/src/views/bpm/group/GroupModal.vue index 4f215d0c..3248e887 100644 --- a/src/views/bpm/group/GroupModal.vue +++ b/src/views/bpm/group/GroupModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/bpm/model/ModelModal.vue b/src/views/bpm/model/ModelModal.vue index 65764613..6fc213a7 100644 --- a/src/views/bpm/model/ModelModal.vue +++ b/src/views/bpm/model/ModelModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/infra/config/ConfigModal.vue b/src/views/infra/config/ConfigModal.vue index b84ce6cd..6b4749da 100644 --- a/src/views/infra/config/ConfigModal.vue +++ b/src/views/infra/config/ConfigModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/infra/dataSourceConfig/DataSourceConfigModal.vue b/src/views/infra/dataSourceConfig/DataSourceConfigModal.vue index df55854e..f3b276fa 100644 --- a/src/views/infra/dataSourceConfig/DataSourceConfigModal.vue +++ b/src/views/infra/dataSourceConfig/DataSourceConfigModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/infra/job/JobModal.vue b/src/views/infra/job/JobModal.vue index c2e3b326..edd82cca 100644 --- a/src/views/infra/job/JobModal.vue +++ b/src/views/infra/job/JobModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/mp/account/AccountModal.vue b/src/views/mp/account/AccountModal.vue index e9f03860..b1f3e062 100644 --- a/src/views/mp/account/AccountModal.vue +++ b/src/views/mp/account/AccountModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/mp/message/MessageModal.vue b/src/views/mp/message/MessageModal.vue index 62696a1f..cf58932e 100644 --- a/src/views/mp/message/MessageModal.vue +++ b/src/views/mp/message/MessageModal.vue @@ -40,8 +40,8 @@ async function handleSubmit() { await sendMessage(values) closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/mp/tag/TagModal.vue b/src/views/mp/tag/TagModal.vue index 0b8069a2..72a5078f 100644 --- a/src/views/mp/tag/TagModal.vue +++ b/src/views/mp/tag/TagModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/mp/user/MpUserModal.vue b/src/views/mp/user/MpUserModal.vue index 9264e3d2..f3d1aff0 100644 --- a/src/views/mp/user/MpUserModal.vue +++ b/src/views/mp/user/MpUserModal.vue @@ -37,8 +37,8 @@ async function handleSubmit() { await updateUser(values) closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/pay/app/AppModal.vue b/src/views/pay/app/AppModal.vue index 305d7ed9..a0cffd6b 100644 --- a/src/views/pay/app/AppModal.vue +++ b/src/views/pay/app/AppModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/pay/merchant/MerchantModal.vue b/src/views/pay/merchant/MerchantModal.vue index cb68c121..c1df72b6 100644 --- a/src/views/pay/merchant/MerchantModal.vue +++ b/src/views/pay/merchant/MerchantModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/dept/DeptModal.vue b/src/views/system/dept/DeptModal.vue index 67f43cf2..8d28682c 100644 --- a/src/views/system/dept/DeptModal.vue +++ b/src/views/system/dept/DeptModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/dict/DictDataModal.vue b/src/views/system/dict/DictDataModal.vue index b833d760..514f0a07 100644 --- a/src/views/system/dict/DictDataModal.vue +++ b/src/views/system/dict/DictDataModal.vue @@ -50,8 +50,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/dict/DictTypeModal.vue b/src/views/system/dict/DictTypeModal.vue index 7efaea3a..f0d3b76d 100644 --- a/src/views/system/dict/DictTypeModal.vue +++ b/src/views/system/dict/DictTypeModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/errorCode/ErrorCodeModal.vue b/src/views/system/errorCode/ErrorCodeModal.vue index 7083de01..8864fda4 100644 --- a/src/views/system/errorCode/ErrorCodeModal.vue +++ b/src/views/system/errorCode/ErrorCodeModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/mail/account/AccountModal.vue b/src/views/system/mail/account/AccountModal.vue index f56ebb97..f523176b 100644 --- a/src/views/system/mail/account/AccountModal.vue +++ b/src/views/system/mail/account/AccountModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/mail/template/TemplateModal.vue b/src/views/system/mail/template/TemplateModal.vue index 0059b284..941cee46 100644 --- a/src/views/system/mail/template/TemplateModal.vue +++ b/src/views/system/mail/template/TemplateModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/menu/MenuModal.vue b/src/views/system/menu/MenuModal.vue index 239e55a3..d20b45a5 100644 --- a/src/views/system/menu/MenuModal.vue +++ b/src/views/system/menu/MenuModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/notice/NoticeModal.vue b/src/views/system/notice/NoticeModal.vue index 0a493a80..aba908a4 100644 --- a/src/views/system/notice/NoticeModal.vue +++ b/src/views/system/notice/NoticeModal.vue @@ -51,8 +51,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/notify/template/TemplateModal.vue b/src/views/system/notify/template/TemplateModal.vue index 09d165bb..000812c9 100644 --- a/src/views/system/notify/template/TemplateModal.vue +++ b/src/views/system/notify/template/TemplateModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/oauth2/client/ClientModal.vue b/src/views/system/oauth2/client/ClientModal.vue index 381d2236..42a9f710 100644 --- a/src/views/system/oauth2/client/ClientModal.vue +++ b/src/views/system/oauth2/client/ClientModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/post/PostModal.vue b/src/views/system/post/PostModal.vue index 98830643..f4187f52 100644 --- a/src/views/system/post/PostModal.vue +++ b/src/views/system/post/PostModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/role/RoleMenuModal.vue b/src/views/system/role/RoleMenuModal.vue index a4d0c3f2..2b688ecc 100644 --- a/src/views/system/role/RoleMenuModal.vue +++ b/src/views/system/role/RoleMenuModal.vue @@ -70,8 +70,8 @@ async function handleSubmit() { }) closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/role/RoleModal.vue b/src/views/system/role/RoleModal.vue index 19843acd..2f9df6bf 100644 --- a/src/views/system/role/RoleModal.vue +++ b/src/views/system/role/RoleModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/role/RoleScopeModal.vue b/src/views/system/role/RoleScopeModal.vue index dfaee0c1..0e93236c 100644 --- a/src/views/system/role/RoleScopeModal.vue +++ b/src/views/system/role/RoleScopeModal.vue @@ -60,8 +60,8 @@ async function handleSubmit() { await assignRoleDataScope(values) closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/sensitiveWord/SensitiveWordModal.vue b/src/views/system/sensitiveWord/SensitiveWordModal.vue index 02412e43..a27bd245 100644 --- a/src/views/system/sensitiveWord/SensitiveWordModal.vue +++ b/src/views/system/sensitiveWord/SensitiveWordModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/sms/channel/SmsChannelModal.vue b/src/views/system/sms/channel/SmsChannelModal.vue index 8a23684d..eba9a5e5 100644 --- a/src/views/system/sms/channel/SmsChannelModal.vue +++ b/src/views/system/sms/channel/SmsChannelModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/sms/template/SmsTemplateModal.vue b/src/views/system/sms/template/SmsTemplateModal.vue index 303fa236..fef528e7 100644 --- a/src/views/system/sms/template/SmsTemplateModal.vue +++ b/src/views/system/sms/template/SmsTemplateModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/tenant/TenantModal.vue b/src/views/system/tenant/TenantModal.vue index 44e8c5bc..65c5a977 100644 --- a/src/views/system/tenant/TenantModal.vue +++ b/src/views/system/tenant/TenantModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/tenantPackage/TenantPackageModal.vue b/src/views/system/tenantPackage/TenantPackageModal.vue index cd11e6bc..8a39b839 100644 --- a/src/views/system/tenantPackage/TenantPackageModal.vue +++ b/src/views/system/tenantPackage/TenantPackageModal.vue @@ -73,8 +73,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/user/ResetPwdModal.vue b/src/views/system/user/ResetPwdModal.vue index ac3b83f8..87e52a5b 100644 --- a/src/views/system/user/ResetPwdModal.vue +++ b/src/views/system/user/ResetPwdModal.vue @@ -39,8 +39,8 @@ async function handleSubmit() { setModalProps({ confirmLoading: true }) closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/user/UserModal.vue b/src/views/system/user/UserModal.vue index bd351e88..5561ab0a 100644 --- a/src/views/system/user/UserModal.vue +++ b/src/views/system/user/UserModal.vue @@ -46,8 +46,8 @@ async function handleSubmit() { } closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } } diff --git a/src/views/system/user/UserRoleModal.vue b/src/views/system/user/UserRoleModal.vue index ca7dc751..0d8575a7 100644 --- a/src/views/system/user/UserRoleModal.vue +++ b/src/views/system/user/UserRoleModal.vue @@ -41,8 +41,8 @@ async function handleSubmit() { await assignUserRole({ userId: values.id, roleIds: values.roleIds }) closeModal() emit('success') - } finally { createMessage.success(t('common.saveSuccessText')) + } finally { setModalProps({ confirmLoading: false }) } }