diff --git a/src/forge/Information/Pages/apply.jsx b/src/forge/Information/Pages/apply.jsx index 89e674ed5..52986e51c 100644 --- a/src/forge/Information/Pages/apply.jsx +++ b/src/forge/Information/Pages/apply.jsx @@ -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){