diff --git a/public/css/iconfont.ttf b/public/css/iconfont.ttf
index 2be264d0..34e1c551 100644
Binary files a/public/css/iconfont.ttf and b/public/css/iconfont.ttf differ
diff --git a/public/css/iconfont.woff b/public/css/iconfont.woff
index daace22b..110dab01 100644
Binary files a/public/css/iconfont.woff and b/public/css/iconfont.woff differ
diff --git a/public/css/iconfont.woff2 b/public/css/iconfont.woff2
index 9cc49e6d..a20e8d6e 100644
Binary files a/public/css/iconfont.woff2 and b/public/css/iconfont.woff2 differ
diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js
index 0d745f37..da12c36a 100644
--- a/src/forge/Head/Header.js
+++ b/src/forge/Head/Header.js
@@ -55,28 +55,6 @@ class NewHeader extends Component {
this.geturlsdata();
window._header_componentHandler = this;
- //下拉框的显示隐藏
- // var hoverTimeout;
- // var hoveredPanel;
- // $(".edu-menu-panel").hover(function () {
- // if (hoverTimeout) { // 一次只显示一个panel
- // if (hoveredPanel && hoveredPanel !== this) {
- // $(hoveredPanel).find(".edu-menu-list").hide()
- // }
- // clearTimeout(hoverTimeout);
- // hoverTimeout = null;
- // }
- // hoveredPanel = this;
- // $(this).find(".edu-menu-list").show();
- // }, function () {
- // var that = this;
- // // 延迟hide
- // hoverTimeout = setTimeout(function () {
- // $(that).find(".edu-menu-list").hide();
- // }, 800)
-
- // });
- //获取游览器地址
try {
window.sessionStorage.setItem("yslgeturls", JSON.stringify(window.location.href))
} catch (e) {}
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index 66822ddb..880b24a9 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -242,6 +242,7 @@ class Detail extends Component {
} else if (result.data.mirror_status === 2) {
this.deleteProjectBack();
} else {
+ this.getBanner();
this.getDetail();
this.setState({
firstSync: false,
@@ -287,6 +288,7 @@ class Detail extends Component {
this.deleteProjectBack();
}
this.getDetail();
+ this.getBanner();
}
this.setState({
firstSync: false,
@@ -317,7 +319,6 @@ class Detail extends Component {
getDetail = () => {
const { projectsId, owner } = this.props.match.params;
- this.getBanner();
const url = `/${owner}/${projectsId}/detail.json`;
axios.get(url).then((result) => {
if (result && result.data) {
diff --git a/src/forge/New/Index.js b/src/forge/New/Index.js
index edc655a4..0898683f 100644
--- a/src/forge/New/Index.js
+++ b/src/forge/New/Index.js
@@ -56,14 +56,6 @@ class Index extends Component {
componentDidMount = () => {
// 获取拥有者列表
this.getOwner();
- // 获取项目类别
- this.getCategory();
- // 获取项目语言
- this.getLanguage();
- // 获取Gitignore
- this.getGitignore();
- // 获取开源许可证
- this.getLicenses();
//判断是否为删除新建项目失败后返回,并执行对应逻辑
this.isDeleteProjectBack();
}
@@ -307,6 +299,39 @@ class Index extends Component {
})
}
+ showCateFunc =(e)=>{
+ const { CategoryList } = this.state;
+ this.setState({categoreFlag:e.target.checked});
+ // 获取项目类别
+ if(e.target.checked && (!CategoryList || (CategoryList && CategoryList.length===0))){
+ this.getCategory();
+ }
+ }
+ showLanguageFunc =(e)=>{
+ const { LanguageList } = this.state;
+ this.setState({languageFlag:e.target.checked});
+ // 获取项目语言
+ if(e.target.checked && (!LanguageList || (LanguageList && LanguageList.length===0))){
+ this.getLanguage();
+ }
+ }
+ showIgnoreFunc =(e)=>{
+ const { GitignoreList } = this.state;
+ this.setState({ignoreFlag:e.target.checked})
+ if(e.target.checked && (!GitignoreList || (GitignoreList && GitignoreList.length===0))){
+ // 获取Gitignore
+ this.getGitignore();
+ }
+ }
+ showLicenseFunc =(e)=>{
+ const { LicensesList } = this.state;
+ this.setState({licenseFlag:e.target.checked})
+ if(e.target.checked && (!LicensesList || (LicensesList && LicensesList.length===0))){
+ // 获取开源许可证
+ this.getLicenses();
+ }
+ }
+
render() {
const { getFieldDecorator } = this.props.form;
// 项目类型:deposit-托管项目,mirror-镜像项目
@@ -472,7 +497,7 @@ class Index extends Component {
className="privatePart"
>
{getFieldDecorator('ignoreFlag')(
-