From fc4a4e2eff6664d5126a031943a1791c25cfb3a1 Mon Sep 17 00:00:00 2001
From: caishi <1149225589@qq.com>
Date: Fri, 23 Aug 2024 14:26:41 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E4=BB=93=E5=BA=93=E5=A4=B1?=
=?UTF-8?q?=E8=B4=A5=E7=9A=84=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E5=86=85?=
=?UTF-8?q?=E5=AE=B9=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/forge/Main/CoderDepot.jsx | 11 ++++++++---
src/forge/Main/Detail.js | 2 +-
src/forge/Main/Index.scss | 10 +++++++++-
3 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/forge/Main/CoderDepot.jsx b/src/forge/Main/CoderDepot.jsx
index 9de0521b..3285254f 100644
--- a/src/forge/Main/CoderDepot.jsx
+++ b/src/forge/Main/CoderDepot.jsx
@@ -439,12 +439,17 @@ function CoderDepot(props){
{
mirror_status === 2 &&
-

+

{
projectDetail.permission && mangementOperate.includes(projectDetail.permission) ?
-
导入项目失败,请前往 仓库设置 删除本项目后重新导入!
+
+
导入项目失败,可能存在以下原因:
+
1、导入的仓库 URL 错误。
+
2、您需要导入的可能是一个您无权访问的私有仓库,需要输入授权验证仓库的帐号、密码(或者个人令牌),此信息仅用于本次代码同步,不做任何记录。
+
请前往 仓库设置 删除本项目后重新导入!
+
:
-
导入项目失败,请联系管理员重新导入!
+
导入项目失败,请联系管理员重新导入!
}
}
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index 5a43db0f..c4fef2e1 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -299,7 +299,7 @@ class Detail extends Component {
projectdata = this.props.defaultDetail
} else {
const res = await getProjectDetailFunc(owner, projectsId, !window.location.host);
- if (res.status === 200) {
+ if (res && res.status === 200) {
projectdata = res.data
}
}
diff --git a/src/forge/Main/Index.scss b/src/forge/Main/Index.scss
index 1e584c4d..b894b648 100644
--- a/src/forge/Main/Index.scss
+++ b/src/forge/Main/Index.scss
@@ -563,10 +563,18 @@
flex-direction: column;
align-items: center;
justify-content: center;
+ flex-direction: column;
font-weight: 400;
font-size: 15px;
color: #4C5B76;
+ padding-top: 50px;
+ .failInfo{
+ max-width: 480px;
+ li{
+ font-size: 15px;
+ }
+ }
img{
- margin-bottom: 20px;
+ margin-bottom: 35px;
}
}
\ No newline at end of file