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) => {
336
336
role_setting: list .value ,
337
337
}
338
338
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
+ })
344
351
} 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
+ })
350
364
}
351
365
}
352
366
})
You can’t perform that action at this time.
0 commit comments