fix: sucess message
parent
f97f541f30
commit
611825b0f7
|
@ -38,8 +38,8 @@ async function handleSubmit() {
|
||||||
setModalProps({ confirmLoading: true })
|
setModalProps({ confirmLoading: true })
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,8 +40,8 @@ async function handleSubmit() {
|
||||||
await sendMessage(values)
|
await sendMessage(values)
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,8 +37,8 @@ async function handleSubmit() {
|
||||||
await updateUser(values)
|
await updateUser(values)
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,8 +50,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,8 +51,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,8 +70,8 @@ async function handleSubmit() {
|
||||||
})
|
})
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,8 +60,8 @@ async function handleSubmit() {
|
||||||
await assignRoleDataScope(values)
|
await assignRoleDataScope(values)
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,8 +73,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,8 +39,8 @@ async function handleSubmit() {
|
||||||
setModalProps({ confirmLoading: true })
|
setModalProps({ confirmLoading: true })
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,8 +46,8 @@ async function handleSubmit() {
|
||||||
}
|
}
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,8 +41,8 @@ async function handleSubmit() {
|
||||||
await assignUserRole({ userId: values.id, roleIds: values.roleIds })
|
await assignUserRole({ userId: values.id, roleIds: values.roleIds })
|
||||||
closeModal()
|
closeModal()
|
||||||
emit('success')
|
emit('success')
|
||||||
} finally {
|
|
||||||
createMessage.success(t('common.saveSuccessText'))
|
createMessage.success(t('common.saveSuccessText'))
|
||||||
|
} finally {
|
||||||
setModalProps({ confirmLoading: false })
|
setModalProps({ confirmLoading: false })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue