调整预览页

dev_aliyun2
杨树林 5 years ago committed by harry
parent 42826dc1f9
commit 7ff3b8d8ca

@ -12,11 +12,15 @@ class Bottomsubmit extends Component {
cannelfun = () => { cannelfun = () => {
// window.location.href= // window.location.href=
if (this.props.Cohetepaperbool === true) { try {
this.props.setCohetepaperbool(false); if(this.props.Cohetepaperbool===true){
} else { this.props.setCohetepaperbool(false);
this.props.history.replace(this.props.url); }else {
} this.props.history.replace(this.props.url);
}
}catch (e) {
this.props.history.replace(this.props.url);
}
} }

@ -391,6 +391,7 @@ class Paperreview extends Component {
<Bottomsubmit {...this.props} {...this.state} bottomvalue={Cohetepaperbool===false?"保存组卷":"完成"} <Bottomsubmit {...this.props} {...this.state} bottomvalue={Cohetepaperbool===false?"保存组卷":"完成"}
setCohetepaperbool={(bool)=>this.setCohetepaperbool(bool)} setCohetepaperbool={(bool)=>this.setCohetepaperbool(bool)}
Cohetepaperbool={this.state.Cohetepaperbool}
onSubmits={() => this.preservation()} url={ artificialtype==="artificial"?'/problemset':'/paperlibrary'}></Bottomsubmit> onSubmits={() => this.preservation()} url={ artificialtype==="artificial"?'/problemset':'/paperlibrary'}></Bottomsubmit>
</div> </div>
) )

Loading…
Cancel
Save