forked from Gitlink/forgeplus-react
优化接口请求
This commit is contained in:
parent
34f00361c0
commit
ef84ea8529
|
|
@ -52,7 +52,7 @@ function Apply(props) {
|
|||
|
||||
useEffect(()=>{
|
||||
// 获取当前用户报名信息
|
||||
current_user && getUserApplyInfo({userId: current_user.user_id, round}).then(response=>{
|
||||
current_user && round && getUserApplyInfo({userId: current_user.user_id, round}).then(response=>{
|
||||
if(response && response.message === "success"){
|
||||
setUserApplyInfo(response.data);
|
||||
if(!response.data){
|
||||
|
|
@ -81,7 +81,7 @@ function Apply(props) {
|
|||
})
|
||||
}
|
||||
})
|
||||
}, [reload])
|
||||
}, [])
|
||||
|
||||
// 当用户输入结束时 检验用户输入是否符合规范
|
||||
function verify(dataIndex){
|
||||
|
|
|
|||
|
|
@ -133,8 +133,8 @@ const Glcc = (propsF) => {
|
|||
}, [])
|
||||
|
||||
useEffect(()=>{
|
||||
// 获取用户课题报名信息
|
||||
current_user && current_user.login && getStudentApplyInfo({userId: current_user.user_id}).then(response=>{
|
||||
// 获取用户课题报名信息(todo:学生报名阶段请求)
|
||||
false && current_user && current_user.login && getStudentApplyInfo({userId: current_user.user_id}).then(response=>{
|
||||
if(response && response.message === "success"){
|
||||
// setData(response.data.rows);
|
||||
const data = {};
|
||||
|
|
|
|||
Loading…
Reference in New Issue