Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
so-manage-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
smart-operation
so-manage-ui
Commits
42e9eb8a
Commit
42e9eb8a
authored
Jul 13, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改退出登录菜单显示问题
parent
e917fcc2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
src/components/bg-menu.vue
src/components/bg-menu.vue
+1
-0
src/request/http.js
src/request/http.js
+2
-0
No files found.
src/components/bg-menu.vue
View file @
42e9eb8a
...
...
@@ -210,6 +210,7 @@ export default {
if
(
res
.
data
.
code
==
"
200
"
)
{
window
.
location
.
href
=
"
/so/manage/ui/#/login
"
;
this
.
$store
.
commit
(
"
setUserInfo
"
,
null
);
this
.
$store
.
commit
(
"
setMenu
"
,
null
);
clearCookie
(
"
bgToken
"
);
this
.
$message
.
success
(
"
退出成功
"
);
resetRouter
();
...
...
src/request/http.js
View file @
42e9eb8a
...
...
@@ -28,6 +28,8 @@ const toLogin = () => {
let
path
=
router
.
currentRoute
.
value
.
path
;
//白名单中的401不做跳转
if
(
!
store
.
state
.
whiteList
.
includes
(
path
))
{
store
.
commit
(
"
setUserInfo
"
,
null
);
store
.
commit
(
"
setMenu
"
,
null
);
window
.
location
.
href
=
`/so/manage/ui/#/login`
;
}
// router.replace({
...
...
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