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
c719eaa3
Commit
c719eaa3
authored
Jun 29, 2023
by
李鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录模块修改
parent
fca1bd44
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/components/bg-menu.vue
src/components/bg-menu.vue
+3
-3
src/request/http.js
src/request/http.js
+1
-0
No files found.
src/components/bg-menu.vue
View file @
c719eaa3
...
...
@@ -73,7 +73,7 @@
</div>
</div>
<div
class=
"person-menu"
>
<div
class=
"person-menu"
v-if=
"userInfo && userInfo.system_id"
>
<!-- 用户中心 -->
<div
class=
"user-center nav-item"
>
<span
class=
"user-icon"
>
...
...
@@ -91,7 +91,7 @@
<bg-icon
icon=
"#bg-ic-arrow-down"
style=
"font-size: 8px; margin-left: 3px"
/>
</span>
<span
v-else
class=
"user-name"
@
click.stop=
"menuAction('login')"
>
请登录
</span>
<span
v-else
class=
"user-name"
>
请登录
</span>
<div
class=
"menu-virtual"
></div>
<div
v-if=
"userInfo && userInfo.system_id"
class=
"menu-list"
>
<div
...
...
@@ -235,7 +235,7 @@ export default {
if
(
n
==
"
logout
"
)
{
this
.
$axios
.
post
(
"
/v1/api/user/logout
"
).
then
((
res
)
=>
{
if
(
res
.
data
.
code
==
"
200
"
)
{
window
.
location
.
href
=
"
/so/manage/ui/
/
#/login
"
;
window
.
location
.
href
=
"
/so/manage/ui/#/login
"
;
this
.
$store
.
commit
(
"
setUserInfo
"
,
null
);
clearCookie
(
"
bgToken
"
);
this
.
$message
.
success
(
"
退出成功
"
);
...
...
src/request/http.js
View file @
c719eaa3
...
...
@@ -28,6 +28,7 @@ const toLogin = () => {
let
path
=
router
.
currentRoute
.
value
.
path
;
//白名单中的401不做跳转
if
(
!
store
.
state
.
whiteList
.
includes
(
path
))
{
debugger
;
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