forked from Gitlink/forgeplus-react
post method
This commit is contained in:
parent
37a85c00d2
commit
a67ea1731c
|
|
@ -39,13 +39,6 @@ console.log(props);
|
|||
callback();
|
||||
}
|
||||
|
||||
|
||||
// function checkIndentity(rule, value, callback){
|
||||
// if(value && !idenReg.test(value)){
|
||||
// callback("专区标识长度2-20,只能以字母开头结尾,可包含数字、下划线、中划线");
|
||||
// }
|
||||
// callback();
|
||||
// }
|
||||
|
||||
return(
|
||||
<div className="applyBox">
|
||||
|
|
|
|||
|
|
@ -25,14 +25,27 @@ function SelfList(props){
|
|||
useEffect(()=>{
|
||||
if(id){
|
||||
setIsSpin(true);
|
||||
if(source===true){
|
||||
getSource();
|
||||
}
|
||||
if(source===false){
|
||||
getNew();
|
||||
}
|
||||
getFunc(source);
|
||||
}
|
||||
},[status, page , id,source])
|
||||
},[id,source,page])
|
||||
|
||||
function getFunc(s){
|
||||
if(s===true){
|
||||
getSource();
|
||||
}
|
||||
if(s===false){
|
||||
getNew();
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(()=>{
|
||||
if(page===1){
|
||||
setIsSpin(true);
|
||||
getFunc(source);
|
||||
}else{
|
||||
setPage(1);
|
||||
}
|
||||
},[status])
|
||||
|
||||
|
||||
useEffect(()=>{
|
||||
|
|
|
|||
|
|
@ -172,6 +172,8 @@ export function delSourceMyList(id){
|
|||
export function postCreateZone(data) {
|
||||
return fetch({
|
||||
url: `/zone/application`,
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue