From 9deeacc94e86b894fffdbc394121e39542cff060 Mon Sep 17 00:00:00 2001 From: dataeaseShu Date: Mon, 28 Jul 2025 09:46:27 +0800 Subject: [PATCH] fix: bug fix --- frontend/src/views/system/user/User.vue | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/frontend/src/views/system/user/User.vue b/frontend/src/views/system/user/User.vue index 0ee8da38..029042bc 100644 --- a/frontend/src/views/system/user/User.vue +++ b/frontend/src/views/system/user/User.vue @@ -366,6 +366,7 @@ import { workspaceList } from '@/api/workspace' import { formatTimestamp } from '@/utils/date' import { ClickOutside as vClickOutside } from 'element-plus-secondary' import icon_warning_filled from '@/assets/svg/icon_warning_filled.svg' +import { cloneDeep } from 'lodash' const { t } = useI18n() const keyword = ref('') @@ -725,8 +726,9 @@ const search = () => { }) } const addTerm = () => { + const { account, email, name, oid, status } = state.form userApi - .add(state.form) + .add({ account, email, name, oid, status }) .then(() => { dialogFormVisible.value = false search() @@ -740,14 +742,18 @@ const addTerm = () => { }) } const editTerm = () => { - userApi.edit(state.form).then(() => { - dialogFormVisible.value = false - search() - ElMessage({ - type: 'success', - message: t('common.save_success'), + const { account, id, create_time, email, language, name, oid, oid_list, origin, status } = + state.form + userApi + .edit({ account, id, create_time, email, language, name, oid, oid_list, origin, status }) + .then(() => { + dialogFormVisible.value = false + search() + ElMessage({ + type: 'success', + message: t('common.save_success'), + }) }) - }) } const duplicateName = () => {