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