|
|
|
@ -31,6 +31,10 @@ class ProjectPackageIndex extends Component {
|
|
|
|
|
super(props)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
|
window.document.title = '交流问答'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
@ -39,25 +43,25 @@ class ProjectPackageIndex extends Component {
|
|
|
|
|
<Switch>
|
|
|
|
|
{/*众包首页*/}
|
|
|
|
|
|
|
|
|
|
<Route path="/project_packages/:id/edit"
|
|
|
|
|
<Route path="/crowdsourcing/:id/edit"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<PackageIndexNewandEdit {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/project_packages/new"
|
|
|
|
|
<Route path="/crowdsourcing/new"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<PackageIndexNewandEdit {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/project_packages/:id"
|
|
|
|
|
<Route path="/crowdsourcing/:id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<PackageIndexNEITaskDetails {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/project_packages"
|
|
|
|
|
<Route path="/crowdsourcing"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<PackageIndex {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|