@@ -366,6 +366,7 @@ import { workspaceList } from '@/api/workspace'
366366import { formatTimestamp } from ' @/utils/date'
367367import { ClickOutside as vClickOutside } from ' element-plus-secondary'
368368import icon_warning_filled from ' @/assets/svg/icon_warning_filled.svg'
369+ import { cloneDeep } from ' lodash'
369370
370371const { t } = useI18n ()
371372const keyword = ref (' ' )
@@ -725,8 +726,9 @@ const search = () => {
725726 })
726727}
727728const 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}
742744const 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
753759const duplicateName = () => {
0 commit comments