diff --git a/src/forge/Branch/SelectOverlay.jsx b/src/forge/Branch/SelectOverlay.jsx
index e9c4aae4..0be56732 100644
--- a/src/forge/Branch/SelectOverlay.jsx
+++ b/src/forge/Branch/SelectOverlay.jsx
@@ -2,7 +2,7 @@ import React , { useState , useEffect } from 'react';
import { Input , Spin , Menu } from 'antd';
import { getBranch , getTag } from '../GetData/getData';
-function SelectOverlay({ changeBranch , tagflag , branchList , projectsId , owner , visible }) {
+function SelectOverlay({ changeBranch , tagflag , projectsId , owner , visible }) {
const [ inputValue , setInputValue] = useState(undefined);
const [ nav , setNav ] = useState(0);
const [ isSpin , setIsSpin ] = useState(true);
@@ -11,21 +11,13 @@ function SelectOverlay({ changeBranch , tagflag , branchList , projectsId , owne
const [ datas , setDatas ] = useState(undefined);
const [ keys ,setKeys] = useState("branch");
- // useEffect(()=>{
- // if(visible){
- // setKeys("branch");
- // getBranchs(projectsId,owner);
- // setIsSpin(true);
- // }
- // },[visible])
-
useEffect(()=>{
- if(branchList){
- setData(branchList);
- setDatas(branchList);
- setIsSpin(false);
+ if(visible){
+ setKeys("branch");
+ getBranchs(projectsId,owner);
+ setIsSpin(true);
}
- },[branchList])
+ },[visible])
async function getBranchs(id,owner){
let result = await getBranch(id,owner);
diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx
index 8dd5e468..f50c134a 100644
--- a/src/forge/Main/CoderDepot.jsx
+++ b/src/forge/Main/CoderDepot.jsx
@@ -407,14 +407,14 @@ function CoderDepot(props){
分支
- {projectDetail && projectDetail.branches && projectDetail.branches.total_count}
+ {projectDetail && projectDetail.branches_count}
标签
- {projectDetail && projectDetail.tags && projectDetail.tags.total_count}
+ {projectDetail && projectDetail.tags_count}