Skip to content

Commit f10cd22

Browse files
committed
fix: bug fix
1 parent 36a490c commit f10cd22

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

frontend/src/views/system/user/User.vue

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -740,26 +740,6 @@ const editTerm = () => {
740740
}
741741
742742
const duplicateName = async () => {
743-
const res = await userApi.pager({}, 1, 1000)
744-
const arr = res.filter((ele: any) => ele.id !== state.form.id)
745-
const names = arr.map((ele: any) => ele.name)
746-
const accounts = arr.map((ele: any) => ele.account)
747-
const emails = arr.map((ele: any) => ele.email)
748-
if (names.includes(state.form.name)) {
749-
ElMessage.error(t('embedded.duplicate_name_'))
750-
return
751-
}
752-
753-
if (accounts.includes(state.form.account)) {
754-
ElMessage.error(t('embedded.duplicate_account'))
755-
return
756-
}
757-
758-
if (emails.includes(state.form.email)) {
759-
ElMessage.error(t('embedded.duplicate_email'))
760-
return
761-
}
762-
763743
if (state.form.id) {
764744
editTerm()
765745
} else {

0 commit comments

Comments
 (0)