修复 一处redirectToAfterConfirm没有传入到userentitygant组件中
This commit is contained in:
parent
f48157d119
commit
6d4825ae24
|
|
@ -49,7 +49,6 @@ exports.default = OakComponent({
|
|||
var userEntityGrantId = this.state.userEntityGrantId;
|
||||
var imageUrl = (systemConfig && ((_a = systemConfig === null || systemConfig === void 0 ? void 0 : systemConfig.App) === null || _a === void 0 ? void 0 : _a.mpShareImageUrl)) ||
|
||||
'';
|
||||
var redirectToAfterConfirm = this.props.redirectToAfterConfirm;
|
||||
return {
|
||||
title: '',
|
||||
path: "/pages/userEntityGrant/confirm/index?oakId=".concat(userEntityGrantId),
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ function Render(props) {
|
|||
key: 'item-3',
|
||||
children: ((0, jsx_runtime_1.jsx)(byUserEntityGrant_1.default, { entity: entity, entityId: entityId, relations: relations, qrCodeType: qrCodeType, oakPath: oakFullpath
|
||||
? "".concat(oakFullpath, ".userEntityGrant")
|
||||
: undefined, oakAutoUnmount: true })),
|
||||
: undefined, oakAutoUnmount: true, redirectToAfterConfirm: redirectToAfterConfirm })),
|
||||
},
|
||||
];
|
||||
var items2 = [];
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ function Render(props) {
|
|||
key: 'item-3',
|
||||
children: ((0, jsx_runtime_1.jsx)(byUserEntityGrant_1.default, { entity: entity, entityId: entityId, relations: relations, qrCodeType: qrCodeType, oakPath: oakFullpath
|
||||
? "".concat(oakFullpath, ".userEntityGrant")
|
||||
: undefined, oakAutoUnmount: true })),
|
||||
: undefined, oakAutoUnmount: true, redirectToAfterConfirm: redirectToAfterConfirm })),
|
||||
},
|
||||
];
|
||||
var items2 = [];
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ export default OakComponent({
|
|||
const { userEntityGrantId } = this.state;
|
||||
const imageUrl = (systemConfig && systemConfig?.App?.mpShareImageUrl) ||
|
||||
'';
|
||||
const { redirectToAfterConfirm } = this.props;
|
||||
return {
|
||||
title: '',
|
||||
path: `/pages/userEntityGrant/confirm/index?oakId=${userEntityGrantId}`,
|
||||
|
|
@ -72,6 +71,7 @@ export default OakComponent({
|
|||
redirectTo: redirectToAfterConfirm as EntityDict['userEntityGrant']['Schema']['redirectTo'],
|
||||
qrCodeType: qrCodeType as QrCodeType,
|
||||
});
|
||||
|
||||
this.setState({
|
||||
userEntityGrantId: '',
|
||||
});
|
||||
|
|
|
|||
|
|
@ -115,6 +115,7 @@ export default function Render(
|
|||
: undefined
|
||||
}
|
||||
oakAutoUnmount={true}
|
||||
redirectToAfterConfirm={redirectToAfterConfirm}
|
||||
/>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
|
|
@ -114,6 +114,7 @@ export default function Render(
|
|||
: undefined
|
||||
}
|
||||
oakAutoUnmount={true}
|
||||
redirectToAfterConfirm={redirectToAfterConfirm}
|
||||
/>
|
||||
),
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue