Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
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
Maple
TOSTUMI
Commits
a9e0b23a
Commit
a9e0b23a
authored
Dec 09, 2020
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退出登录dva数据留存问题
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
dcce2c44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
AvatarDropdown.tsx
src/components/GlobalHeader/AvatarDropdown.tsx
+5
-4
SecurityLayout.tsx
src/layouts/SecurityLayout.tsx
+4
-4
No files found.
src/components/GlobalHeader/AvatarDropdown.tsx
View file @
a9e0b23a
...
...
@@ -48,11 +48,12 @@ class AvatarDropdown extends React.Component<GlobalHeaderRightProps> {
}
// 在返回登录页
dispatch
({
type
:
'login/logout'
,
});
// 刷新一下,避免 dva 的数据还存在
window
.
location
.
pathname
=
'/'
;
// dispatch({
// type: 'login/logout',
// });
}
return
;
}
...
...
src/layouts/SecurityLayout.tsx
View file @
a9e0b23a
...
...
@@ -97,10 +97,10 @@ class SecurityLayout extends React.Component<SecurityLayoutProps, SecurityLayout
// 访客记录
{
path
:
'/CommunityManagement/VisitorRecord'
,
title
:
'访客记录'
,
key
:
'60'
},
// 账号管理
{
path
:
'AccountManagement/account'
,
title
:
'账号管理'
,
key
:
'62'
},
{
path
:
'AccountManagement/account/Detail'
,
title
:
'查看账号'
,
key
:
'63'
},
{
path
:
'AccountManagement/account/edit'
,
title
:
'编辑账号'
,
key
:
'64'
},
{
path
:
'AccountManagement/account/Add'
,
title
:
'添加账号'
,
key
:
'65'
},
{
path
:
'
/
AccountManagement/account'
,
title
:
'账号管理'
,
key
:
'62'
},
{
path
:
'
/
AccountManagement/account/Detail'
,
title
:
'查看账号'
,
key
:
'63'
},
{
path
:
'
/
AccountManagement/account/edit'
,
title
:
'编辑账号'
,
key
:
'64'
},
{
path
:
'
/
AccountManagement/account/Add'
,
title
:
'添加账号'
,
key
:
'65'
},
];
const
permission
=
JSON
.
parse
(
localStorage
.
getItem
(
'permission'
)
||
'[]'
);
...
...
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