We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ea9527 commit 43ed023Copy full SHA for 43ed023
1 file changed
mail-vue/src/views/user/index.vue
@@ -153,7 +153,7 @@
153
</el-button>
154
</div>
155
</el-dialog>
156
- <el-dialog v-model="showAdd" :title="$t('addUser')">
+ <el-dialog v-model="showAdd" :title="$t('addUser')" @closed="resetAddForm">
157
<div class="container">
158
<el-input v-model="addForm.email" type="text" :placeholder="$t('emailAccount')" autocomplete="off">
159
<template #append>
@@ -743,13 +743,12 @@ function submit() {
743
form.email = form.email + form.suffix
744
userAdd(form).then(() => {
745
addLoading.value = false
746
- showAdd.value = false
+ addForm.email = ''
747
ElMessage({
748
message: t('addSuccessMsg'),
749
type: "success",
750
plain: true
751
})
752
- resetAddForm()
753
getUserList(false)
754
}).finally(res => {
755
0 commit comments