Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
e9fe1d88
Commit
e9fe1d88
authored
Nov 14, 2023
by
杨思琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 多请求触发修改
parent
52800635
Pipeline
#81620
waiting for manual action with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
BasicLayout.js
src/layouts/BasicLayout.js
+4
-2
No files found.
src/layouts/BasicLayout.js
View file @
e9fe1d88
...
...
@@ -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
();
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment