diff --git a/public/css/edu-purge.css b/public/css/edu-purge.css
index 9f6e8b28..c871ca90 100644
--- a/public/css/edu-purge.css
+++ b/public/css/edu-purge.css
@@ -1617,7 +1617,7 @@ a.decoration {
}
.mt8 {
- margin-top: 8px;
+ margin-top: 8px !important;
}
.mt9 {
diff --git a/src/forge/users/Index.scss b/src/forge/users/Index.scss
index 5fdc0b1f..b67abf15 100644
--- a/src/forge/users/Index.scss
+++ b/src/forge/users/Index.scss
@@ -66,5 +66,8 @@ $flex:flex;
color: #fff;
padding:0px 15px;
}
+ .statusDivider{
+ margin: 8px 0 0 0 !important;
+ }
}
}
\ No newline at end of file
diff --git a/src/forge/users/Infos.js b/src/forge/users/Infos.js
index 1446b721..d522e040 100644
--- a/src/forge/users/Infos.js
+++ b/src/forge/users/Infos.js
@@ -185,7 +185,7 @@ class Infos extends Component {
- {current_user && user && current_user.id === user.id && (
+ {/* {current_user && user && current_user.id === user.id && (
this.undo_link()}>
@@ -199,7 +199,7 @@ class Infos extends Component {
- )}
+ )} */}
- this.change_project_type(undefined)}>
diff --git a/src/forge/users/InfosUser.js b/src/forge/users/InfosUser.js
index 4f3764a1..6fab450d 100644
--- a/src/forge/users/InfosUser.js
+++ b/src/forge/users/InfosUser.js
@@ -1,6 +1,6 @@
import React, { Component } from "react";
import { Link } from "react-router-dom";
-import { Menu, Input, Spin, Pagination, Popover, Button } from "antd";
+import { Menu, Input, Spin, Pagination, Popover, Button, Divider } from "antd";
import axios from "axios";
import ListItem from "../Main/IndexItem";
@@ -20,7 +20,7 @@ class InfosUser extends Component {
projectsList: undefined,
total: undefined,
category: undefined,
- is_public:"public"
+ is_public: undefined
};
}
@@ -93,11 +93,15 @@ class InfosUser extends Component {
};
// 切换公有私有
- changeStatus=(is_public)=>{
- this.setState({
- is_public
- })
- this.get_projects(is_public);
+ changeStatus=(check_is_public)=>{
+ const {is_public} = this.state
+ const new_is_public = is_public === check_is_public ? undefined : check_is_public
+
+ // this.setState({
+ // is_public: new_is_public
+ // })
+ this.state.is_public = new_is_public
+ this.get_projects(new_is_public);
}
menu =()=> (