post method

This commit is contained in:
caishi 2023-09-21 17:16:50 +08:00
parent 37a85c00d2
commit a67ea1731c
3 changed files with 22 additions and 14 deletions

View File

@ -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">

View File

@ -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(()=>{

View File

@ -172,6 +172,8 @@ export function delSourceMyList(id){
export function postCreateZone(data) {
return fetch({
url: `/zone/application`,
method: 'post',
data: data
})
}