mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: The user modified the workspace range but did not automatically refresh after returning to the workspace (#3830)
This commit is contained in:
parent
b3f7d5ed4f
commit
e923422cae
|
|
@ -336,17 +336,31 @@ const submit = async (formEl: FormInstance | undefined) => {
|
|||
role_setting: list.value,
|
||||
}
|
||||
if (isEdit.value) {
|
||||
userManageApi.putUserManage(userForm.value.id, params, loading).then((res) => {
|
||||
emit('refresh')
|
||||
MsgSuccess(t('common.editSuccess'))
|
||||
visible.value = false
|
||||
})
|
||||
userManageApi
|
||||
.putUserManage(userForm.value.id, params, loading)
|
||||
.then((res) => {
|
||||
return user.profile(loading).then(() => {
|
||||
return res
|
||||
})
|
||||
})
|
||||
.then((res) => {
|
||||
emit('refresh')
|
||||
MsgSuccess(t('common.editSuccess'))
|
||||
visible.value = false
|
||||
})
|
||||
} else {
|
||||
userManageApi.postUserManage(params, loading).then((res) => {
|
||||
emit('refresh')
|
||||
MsgSuccess(t('common.createSuccess'))
|
||||
visible.value = false
|
||||
})
|
||||
userManageApi
|
||||
.postUserManage(params, loading)
|
||||
.then((res) => {
|
||||
return user.profile(loading).then(() => {
|
||||
return res
|
||||
})
|
||||
})
|
||||
.then((res) => {
|
||||
emit('refresh')
|
||||
MsgSuccess(t('common.createSuccess'))
|
||||
visible.value = false
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue