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