forked from Gitlink/forgeplus-react
未登录进申请创建入口跳转至403
This commit is contained in:
parent
479534c49f
commit
4fbd69ba1a
|
|
@ -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){
|
||||
|
|
|
|||
Loading…
Reference in New Issue