未登录进申请创建入口跳转至403

This commit is contained in:
caishi 2023-09-22 09:35:29 +08:00
parent 479534c49f
commit 4fbd69ba1a
1 changed files with 7 additions and 2 deletions

View File

@ -6,13 +6,18 @@ const { TextArea } = Input;
const phonereg = /^([1][3456789])\d{9}$/
function Apply(props){
const { form } = props;
const { form , current_user } = props;
const { getFieldDecorator , validateFields } = form;
console.log(props);
useEffect(()=>{
document.title = '申请创建专区';
},[])
useEffect(()=>{
if(!(current_user && current_user.login)){
props.history.push("/403");
}
},[current_user])
function submitFunc(){
validateFields((error,values)=>{
if(!error){