From 51e3cd472d1b93286e44dab1e27019e01a8946d1 Mon Sep 17 00:00:00 2001
From: caicai8 <1149225589@qq.com>
Date: Tue, 31 Dec 2019 11:54:43 +0800
Subject: [PATCH] api

---
 public/react/src/forge/Main/Index.js | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/public/react/src/forge/Main/Index.js b/public/react/src/forge/Main/Index.js
index e8ee488ad..f80466b66 100644
--- a/public/react/src/forge/Main/Index.js
+++ b/public/react/src/forge/Main/Index.js
@@ -16,22 +16,26 @@ class Index extends Component{
     this.state={
       projectsList:undefined,
       page:1,
-      limit:15
+      limit:15,
+      search:undefined,
+      sort:undefined
     }
   }
   
   componentDidMount=()=>{
-    const { page,limit } = this.state;
-    this.getListData(page,limit);
+    const { page,limit, search , sort } = this.state;
+    this.getListData(page,limit, search , sort);
   }
 
-  getListData=(page,limit)=>{
+  getListData=(page,limit, search , sort)=>{
     const { current_user } = this.props;
     const url = `/projects.json`;
     axios.get(url,{params:{
       user_id:current_user && current_user.user_id,
       page,
-      limit
+      limit,
+      name:search,
+      sort_by:sort
     }}).then((result)=>{
       if(result){
         this.setState({