From 4b6592dfb395339834d9e79f3eb800a876e8b19d Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 31 May 2021 18:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E4=B8=8A-=E4=BF=AE=E6=94=B9=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/users/GeneralView/ConcentrateProject.jsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/forge/users/GeneralView/ConcentrateProject.jsx b/src/forge/users/GeneralView/ConcentrateProject.jsx index bcd3249c..8d6eaec7 100644 --- a/src/forge/users/GeneralView/ConcentrateProject.jsx +++ b/src/forge/users/GeneralView/ConcentrateProject.jsx @@ -1,7 +1,6 @@ import React, { useEffect, useState } from 'react'; import { AlignAJBottom , AlignCenter } from '../../Component/layout'; import { Link } from 'react-router-dom'; -import { Spin } from 'antd'; import axios from 'axios'; import Box from './ConcentrateBox'; @@ -9,11 +8,9 @@ import Box from './ConcentrateBox'; function ConcentrateProject({userLogin,current}) { const [ list , setList ] = useState(undefined); const [ visible , setVisible ] = useState(false); - const [ isSpin , setIsSpin ] = useState(false); const [ value , setValue ] = useState([]); useEffect(()=>{ - setIsSpin(true); getList(); },[]) @@ -23,7 +20,6 @@ function ConcentrateProject({userLogin,current}) { if(result && result.data){ let p = result.data.projects; setList(p); - setIsSpin(false); if(p && p.length > 0){ let array = p.map(i=>{ return i.id @@ -41,13 +37,12 @@ function ConcentrateProject({userLogin,current}) { }).then(result=>{ if(result && result.data){ setVisible(false); - setIsSpin(true); getList(); } }).catch(error=>{}) } return( - + setVisible(false)} onSure={onSure} username={userLogin} choosed={value}/> { list && list.length>0 && @@ -80,7 +75,7 @@ function ConcentrateProject({userLogin,current}) { { list && list.length === 0 && current &&
你还没有设置精选项目,setVisible(true)}>点击设置
} -
+ ) } export default ConcentrateProject; \ No newline at end of file