Commit 0671215e authored by Sixiang_Zzb's avatar Sixiang_Zzb

登录状态bug修复

parent 13c3a04e
import React from 'react';
import { PageLoading } from '@ant-design/pro-layout';
import { Redirect, connect, ConnectProps, StateType } from 'umi';
import { Redirect, connect, ConnectProps, StateType, history } from 'umi';
import { stringify } from 'querystring';
import { ConnectState } from '@/models/connect';
import { CurrentUser } from '@/models/user';
import login from '@/pages/user/login';
import { getCookie } from '@/utils/method';
import { message } from 'antd';
interface SecurityLayoutProps extends ConnectProps {
loading?: boolean;
......@@ -39,6 +39,9 @@ class SecurityLayout extends React.Component<SecurityLayoutProps, SecurityLayout
password: login.password,
},
});
} else {
message.error('Please Re Login!');
history.push('/user/login');
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment