Skip to content

Commit 9deeacc

Browse files
committed
fix: bug fix
1 parent dab8741 commit 9deeacc

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

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

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ import { workspaceList } from '@/api/workspace'
366366
import { formatTimestamp } from '@/utils/date'
367367
import { ClickOutside as vClickOutside } from 'element-plus-secondary'
368368
import icon_warning_filled from '@/assets/svg/icon_warning_filled.svg'
369+
import { cloneDeep } from 'lodash'
369370
370371
const { t } = useI18n()
371372
const keyword = ref('')
@@ -725,8 +726,9 @@ const search = () => {
725726
})
726727
}
727728
const addTerm = () => {
729+
const { account, email, name, oid, status } = state.form
728730
userApi
729-
.add(state.form)
731+
.add({ account, email, name, oid, status })
730732
.then(() => {
731733
dialogFormVisible.value = false
732734
search()
@@ -740,14 +742,18 @@ const addTerm = () => {
740742
})
741743
}
742744
const editTerm = () => {
743-
userApi.edit(state.form).then(() => {
744-
dialogFormVisible.value = false
745-
search()
746-
ElMessage({
747-
type: 'success',
748-
message: t('common.save_success'),
745+
const { account, id, create_time, email, language, name, oid, oid_list, origin, status } =
746+
state.form
747+
userApi
748+
.edit({ account, id, create_time, email, language, name, oid, oid_list, origin, status })
749+
.then(() => {
750+
dialogFormVisible.value = false
751+
search()
752+
ElMessage({
753+
type: 'success',
754+
message: t('common.save_success'),
755+
})
749756
})
750-
})
751757
}
752758
753759
const duplicateName = () => {

0 commit comments

Comments
 (0)