调整预览页

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

@ -12,11 +12,15 @@ class Bottomsubmit extends Component {
cannelfun = () => {
// window.location.href=
try {
if(this.props.Cohetepaperbool===true){
this.props.setCohetepaperbool(false);
}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?"保存组卷":"完成"}
setCohetepaperbool={(bool)=>this.setCohetepaperbool(bool)}
Cohetepaperbool={this.state.Cohetepaperbool}
onSubmits={() => this.preservation()} url={ artificialtype==="artificial"?'/problemset':'/paperlibrary'}></Bottomsubmit>
</div>
)

Loading…
Cancel
Save