File tree Expand file tree Collapse file tree 1 file changed +24
-10
lines changed
ui/src/views/system/user-manage/component Expand file tree Collapse file tree 1 file changed +24
-10
lines changed Original file line number Diff line number Diff line change @@ -336,17 +336,31 @@ const submit = async (formEl: FormInstance | undefined) => {
336336 role_setting: list .value ,
337337 }
338338 if (isEdit .value ) {
339- userManageApi .putUserManage (userForm .value .id , params , loading ).then ((res ) => {
340- emit (' refresh' )
341- MsgSuccess (t (' common.editSuccess' ))
342- visible .value = false
343- })
339+ userManageApi
340+ .putUserManage (userForm .value .id , params , loading )
341+ .then ((res ) => {
342+ return user .profile (loading ).then (() => {
343+ return res
344+ })
345+ })
346+ .then ((res ) => {
347+ emit (' refresh' )
348+ MsgSuccess (t (' common.editSuccess' ))
349+ visible .value = false
350+ })
344351 } else {
345- userManageApi .postUserManage (params , loading ).then ((res ) => {
346- emit (' refresh' )
347- MsgSuccess (t (' common.createSuccess' ))
348- visible .value = false
349- })
352+ userManageApi
353+ .postUserManage (params , loading )
354+ .then ((res ) => {
355+ return user .profile (loading ).then (() => {
356+ return res
357+ })
358+ })
359+ .then ((res ) => {
360+ emit (' refresh' )
361+ MsgSuccess (t (' common.createSuccess' ))
362+ visible .value = false
363+ })
350364 }
351365 }
352366 })
You can’t perform that action at this time.
0 commit comments