diff --git a/public/react/src/modules/user/Interestpage.js b/public/react/src/modules/user/Interestpage.js index 2e1cdcca2..dbca5a242 100644 --- a/public/react/src/modules/user/Interestpage.js +++ b/public/react/src/modules/user/Interestpage.js @@ -71,7 +71,23 @@ class InterestpageComponent extends Component { }if(response.data.repertoires[i].id===9){ qdkfys=rgzn; } - var datas={id:response.data.repertoires[i].id,name:response.data.repertoires[i].name,bool:false,url:qdkfys}; + + if(response.data.repertoires[i].id===1) { + var datas = { + id: response.data.repertoires[i].id, + name: response.data.repertoires[i].name, + bool: true, + url: qdkfys + }; + } else{ + var datas = { + id: response.data.repertoires[i].id, + name: response.data.repertoires[i].name, + bool: false, + url: qdkfys + }; + } + gouxuans4.push(datas); this.setState({ gouxuans4:gouxuans4, diff --git a/public/react/src/modules/user/InterestpageMax.js b/public/react/src/modules/user/InterestpageMax.js index 22e53c968..e0585ed33 100644 --- a/public/react/src/modules/user/InterestpageMax.js +++ b/public/react/src/modules/user/InterestpageMax.js @@ -71,6 +71,7 @@ class InterestpageMax extends Component { }if(response.data.repertoires[i].id===9){ qdkfys=rgzn; } + if(response.data.repertoires[i].id===1) { var datas = { id: response.data.repertoires[i].id, @@ -86,6 +87,7 @@ class InterestpageMax extends Component { url: qdkfys }; } + gouxuans4.push(datas); this.setState({ gouxuans4:gouxuans4,