diff --git a/src/forge/Main/tree/Index.jsx b/src/forge/Main/tree/Index.jsx
index ae3117a86..0faf9fd36 100644
--- a/src/forge/Main/tree/Index.jsx
+++ b/src/forge/Main/tree/Index.jsx
@@ -3,7 +3,7 @@ import CopyTool from '../../Component/CopyTool';
import { truncateCommitId } from '../../common/util';
import { Link } from 'react-router-dom';
import { getImageUrl , turnbar } from 'educoder';
-import { Button, Dropdown , Input, Menu , message, Modal, Select, Spin, Table, Tooltip } from 'antd';
+import { Button, Dropdown , Input, Menu , message, Modal, Select, Spin, Table, Tooltip , Radio } from 'antd';
import Modals from '../../Component/PublicModal/Index';
import './Index.scss';
@@ -29,26 +29,13 @@ function Index(props) {
const [total, setTotal] = useState(0);
const [pageSize, setPageSize] = useState(10);
+ const [ chooseStatus , setChooseStatus ] = useState("all");
+
const { projectsId , owner } = props.match.params;
const { isManager , isDeveloper , projectDetail , defaultBranch, getDetail } = props;
useEffect(()=>{
- // getList();
- const url = `/v1/${owner}/${projectsId}/branches.json`;
- Axios.get(url,{
- params:{
- keyword: name,
- page: current,
- limit: pageSize
- }
- }).then(result=>{
- if(result){
- const {branches, total_count} = result.data;
- setTotal(total_count)
- setList(branches);
- }
- setIsSpin(false);
- }).catch(error=>{setIsSpin(false);})
- },[name, reload, pageSize, current])
+ getList(chooseStatus);
+ },[name, reload, pageSize, current,chooseStatus])
useEffect(()=>{
if(projectDetail && document.title.indexOf('所有分支-') === -1){
@@ -96,7 +83,7 @@ function Index(props) {
:
+
{txt && txt.committer && txt.committer.name}