diff --git a/src/forge/Component/AddMember.jsx b/src/forge/Component/AddMember.jsx
index f1c14f07f..f927850c8 100644
--- a/src/forge/Component/AddMember.jsx
+++ b/src/forge/Component/AddMember.jsx
@@ -4,7 +4,7 @@ import axios from 'axios';
import { getImageUrl } from 'educoder';
const { Option } = AutoComplete;
-function AddMember({getID,login}){
+function AddMember({getID,login,showNotification}){
const [ id , setID ] = useState(undefined);
const [ source , setSource ] = useState(undefined);
const [ searchKey , setSearchKey ] = useState(undefined);
@@ -66,8 +66,12 @@ function AddMember({getID,login}){
};
function addCollaborator(){
- getID && getID(id);
- setSearchKey(undefined);
+ if(source && source.length>0){
+ getID && getID(id);
+ setSearchKey(undefined);
+ }else{
+ showNotification("请选择存在的用户!");
+ }
}
return(
diff --git a/src/forge/Head/Header.js b/src/forge/Head/Header.js
index 86bb52c54..0ea38b41b 100644
--- a/src/forge/Head/Header.js
+++ b/src/forge/Head/Header.js
@@ -92,7 +92,7 @@ class NewHeader extends Component {
className={`search-input mr20`}
onSearch={(value)=>this.onGlobalSearch(value,item)}
autoFocus={true}
- style={{width:"190px"}}
+ style={{width:"260px"}}
/>
)
diff --git a/src/forge/Settings/Collaborator.js b/src/forge/Settings/Collaborator.js
index 4ae292633..0b94eee5b 100644
--- a/src/forge/Settings/Collaborator.js
+++ b/src/forge/Settings/Collaborator.js
@@ -34,7 +34,7 @@ function Collaborator(props){
}
{
nav === "1" ?
-
+
:
}
diff --git a/src/forge/Team/Group/Setting/GroupMemberSetting.jsx b/src/forge/Team/Group/Setting/GroupMemberSetting.jsx
index 847dd6ef4..a0d8ec781 100644
--- a/src/forge/Team/Group/Setting/GroupMemberSetting.jsx
+++ b/src/forge/Team/Group/Setting/GroupMemberSetting.jsx
@@ -146,7 +146,7 @@ export default ((props) => {
团队成员管理
-
+