|
|
@@ -32,10 +32,13 @@ const PersonalDetail = props => {
|
|
|
})
|
|
|
const dispatchModal = useModal()
|
|
|
const shouldUpdate = refresh?.[updateKey] || false
|
|
|
- const refreshClient = () => {
|
|
|
+ const refreshDetail = () => {
|
|
|
dispatch({
|
|
|
type: 'refresh/commitAction',
|
|
|
- payload: updateKey
|
|
|
+ payload: {
|
|
|
+ main: updateKey,
|
|
|
+ target: dataId
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
const initData = async id => {
|
|
|
@@ -46,10 +49,7 @@ const PersonalDetail = props => {
|
|
|
} = await apiRoadpricingDetailV2({ ssoId: id, projectType })
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
if (shouldUpdate) {
|
|
|
- dispatch({
|
|
|
- type: 'refresh/commitAction',
|
|
|
- payload: updateKey
|
|
|
- })
|
|
|
+ refreshDetail()
|
|
|
}
|
|
|
setState({ ...state, cloudUser, compilationList, log, serviceLog, client, loading: false })
|
|
|
}
|
|
|
@@ -77,7 +77,10 @@ const PersonalDetail = props => {
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
dispatch({
|
|
|
type: 'refresh/commitAction',
|
|
|
- payload: updateKey
|
|
|
+ payload: {
|
|
|
+ main: updateKey,
|
|
|
+ target: dataId
|
|
|
+ }
|
|
|
})
|
|
|
}
|
|
|
}
|