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,
|
role_setting: list.value,
|
||||||
}
|
}
|
||||||
if (isEdit.value) {
|
if (isEdit.value) {
|
||||||
userManageApi.putUserManage(userForm.value.id, params, loading).then((res) => {
|
userManageApi
|
||||||
emit('refresh')
|
.putUserManage(userForm.value.id, params, loading)
|
||||||
MsgSuccess(t('common.editSuccess'))
|
.then((res) => {
|
||||||
visible.value = false
|
return user.profile(loading).then(() => {
|
||||||
})
|
return res
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
emit('refresh')
|
||||||
|
MsgSuccess(t('common.editSuccess'))
|
||||||
|
visible.value = false
|
||||||
|
})
|
||||||
} else {
|
} else {
|
||||||
userManageApi.postUserManage(params, loading).then((res) => {
|
userManageApi
|
||||||
emit('refresh')
|
.postUserManage(params, loading)
|
||||||
MsgSuccess(t('common.createSuccess'))
|
.then((res) => {
|
||||||
visible.value = false
|
return user.profile(loading).then(() => {
|
||||||
})
|
return res
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.then((res) => {
|
||||||
|
emit('refresh')
|
||||||
|
MsgSuccess(t('common.createSuccess'))
|
||||||
|
visible.value = false
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user