Skip to content

Commit e923422

Browse files
authored
fix: The user modified the workspace range but did not automatically refresh after returning to the workspace (#3830)
1 parent b3f7d5e commit e923422

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

ui/src/views/system/user-manage/component/UserDrawer.vue

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)