Commit e9fe1d88 authored by 杨思琦's avatar 杨思琦

fix: 多请求触发修改

parent 52800635
Pipeline #81620 waiting for manual action with stages
......@@ -37,7 +37,7 @@ import SecurityLayout from './SecurityLayout';
import Site from './Site';
const { params } = helpers;
let notify = null;
// const ArcgisMap = React.lazy(() => import('../pages/map/arcgis'));
// const AMap = React.lazy(() => import('../pages/map/amap'));
const CesiumMap = React.lazy(() => import('../pages/map/cesiumMap'));
......@@ -319,7 +319,8 @@ const Layout = props => {
store.on('event:unauthorized', () => {
store.off('event:unauthorized');
const key = `open${Date.now()}`;
notification.open({
if(notify) return false;
notify = notification.open({
description: '登录认证过期,即将跳转到登录页',
duration: null,
btn: (
......@@ -329,6 +330,7 @@ const Layout = props => {
onClick={() => {
notification.close(key);
setTimeout(() => {
notify = null;
clear();
props.logout();
})
......
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