提交 e9adf8ab authored 作者: 钟是志's avatar 钟是志

优化代码

上级 8814a477
...@@ -253,6 +253,7 @@ class SponsorForm extends Component { ...@@ -253,6 +253,7 @@ class SponsorForm extends Component {
computedMatch: this.props?.computedMatch, computedMatch: this.props?.computedMatch,
route: this.props?.route, route: this.props?.route,
}; };
console.log(routerState);
return ( return (
<> <>
{isLoading ? ( {isLoading ? (
......
...@@ -97,6 +97,7 @@ export default class IframeForApply extends React.Component { ...@@ -97,6 +97,7 @@ export default class IframeForApply extends React.Component {
noNeedTitle, noNeedTitle,
} = this.state; } = this.state;
const { modileHome, returnList } = this.props; const { modileHome, returnList } = this.props;
console.log(this.props);
return ( return (
<div <div
className={names('warp IframeDiy')} className={names('warp IframeDiy')}
...@@ -125,14 +126,16 @@ export default class IframeForApply extends React.Component { ...@@ -125,14 +126,16 @@ export default class IframeForApply extends React.Component {
radioValue={value} radioValue={value}
noNeedApplyButton={noNeedApply} noNeedApplyButton={noNeedApply}
init={init} // 表单的初始化数据 用于发起时传入默认值 init={init} // 表单的初始化数据 用于发起时传入默认值
// location={this.props.location}
history={{ history={{
...this.props.history, ...this.props.history,
location: { location: {
...this.props.history.location, ...this.props.location,
state: { state: {
id, id,
noNeedCaoGao: true, noNeedCaoGao: true,
app: {}, app: {},
...this.props.location?.state,
}, },
}, },
}} }}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论