dev_forum
杨树林 5 years ago
parent 7b19a7f4ea
commit 855bc6c353

@ -336,7 +336,7 @@ class App extends Component {
{/* <Route path="/myshixuns/:shixunId/stages/:stageId" component={Index}/> */} {/* <Route path="/myshixuns/:shixunId/stages/:stageId" component={Index}/> */}
{/* 兴趣页面*/} {/* 兴趣页面*/}
<Route path="/interest" component={Interestpage}/> {/*<Route path="/interest" component={Interestpage}/>*/}
<Route path="/comment" component={CommentComponent}/> <Route path="/comment" component={CommentComponent}/>
<Route path="/testMaterial" component={TestMaterialDesignComponent}/> <Route path="/testMaterial" component={TestMaterialDesignComponent}/>
<Route path="/test" component={TestIndex}/> <Route path="/test" component={TestIndex}/>

@ -1351,12 +1351,9 @@ class Listofworks extends Component {
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response !== undefined){ if(response !== undefined){
if(response.data.status&&response.data.status===-1){ if(response.data.status&&response.data.status===-1){
console.log("1352");
console.log(response);
}else if(response.data.status&&response.data.status===-2){ }else if(response.data.status&&response.data.status===-2){
console.log("1356");
console.log(response);
}else { }else {
if(type === 1){ if(type === 1){
Internshipreportsy(url,struy,".zip",'application/zip'); Internshipreportsy(url,struy,".zip",'application/zip');

@ -33,15 +33,15 @@ class InterestpageComponent extends Component {
} }
Clickteacher=(e)=>{ Clickteacher=(e)=>{
console.log(e); console.log(e);
if(e === 1){ if(e === "teacher"){
this.setState({ this.setState({
gouxuans:"teacher", gouxuans:"teacher",
}) })
}else if(e === 2){ }else if(e ==="student"){
this.setState({ this.setState({
gouxuans:"student", gouxuans:"student",
}) })
}else if(e === 3){ }else if(e === "professional"){
this.setState({ this.setState({
gouxuans:"professional", gouxuans:"professional",
}) })

Loading…
Cancel
Save