diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx index 932b9d22..7db7d6bb 100644 --- a/src/forge/Main/CoderDepot.jsx +++ b/src/forge/Main/CoderDepot.jsx @@ -3,6 +3,7 @@ import { WhiteBack , Box , LongWidth , ShortWidth , Gap , AlignCenter , FlexAJ import { Dropdown , Menu , Divider , Spin } from 'antd'; import { getImageUrl } from "educoder"; import { Link } from 'react-router-dom'; +import CloneAddress from '../Branch/CloneAddress'; import SelectBranch from '../Branch/Select'; import User from '../Component/User'; @@ -142,8 +143,8 @@ function CoderDepot(props){ // 文件相关的下拉项 const fileMenu =(
) @@ -186,11 +187,26 @@ function CoderDepot(props){ setHide(!hide); } + function urlLink(link){ + if(props.checkIfLogin()===false){ + props.showLoginDialog() + return false; + } + props.history.push(link); + } + const downloadMenu = ( - +