educoder 组织增加成员-传login
This commit is contained in:
parent
eff1b706c2
commit
bd35ea0301
|
|
@ -32,7 +32,7 @@ export function initAxiosInterceptors(props) {
|
|||
// 判断网络是否连接
|
||||
initOnlineOfflineListener();
|
||||
|
||||
var proxy = "https://testforgeplus.educoder.net/";
|
||||
var proxy = "https://testforgeplus.trustie.net/";
|
||||
//响应前的设置
|
||||
axios.interceptors.request.use(
|
||||
config => {
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ import debounce from 'lodash/debounce';
|
|||
import { Select, Spin , Button , Icon } from 'antd';
|
||||
import axios from 'axios';
|
||||
import { getImageUrl } from 'educoder';
|
||||
function DebounceSelect({ fetchOptions, debounceTimeout = 600, ...props }) {
|
||||
function DebounceSelect({ fetchOptions, debounceTimeout = 600,login, ...props }) {
|
||||
const [fetching, setFetching] = useState(false);
|
||||
const [options, setOptions] = useState([]);
|
||||
const fetchRef = useRef(0);
|
||||
|
|
@ -182,7 +182,7 @@ function DebounceSelect({ fetchOptions, debounceTimeout = 600, ...props }) {
|
|||
options && options.length >0 &&
|
||||
options.map((i)=>{
|
||||
return(
|
||||
<Select.Option value={i.value}>
|
||||
<Select.Option value={login ? i.value : i.login}>
|
||||
{/* <img
|
||||
className="user_img radius"
|
||||
width="28"
|
||||
|
|
@ -243,6 +243,7 @@ const App = ({getID,login,showNotification}) => {
|
|||
<DebounceSelect
|
||||
value={value}
|
||||
style={{width:300}}
|
||||
login={login}
|
||||
placeholder="搜索需要添加的用户..."
|
||||
fetchOptions={fetchUserList}
|
||||
onChange={(newValue) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue