Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
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
xugong
hls-xcmg-vue-app
Commits
785bc27d
Commit
785bc27d
authored
Sep 29, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'退出登录'
parent
3f67c6fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
login.vue
src/pages/login.vue
+1
-1
my-info.vue
src/pages/myInfo/my-info.vue
+16
-0
No files found.
src/pages/login.vue
View file @
785bc27d
...
...
@@ -125,7 +125,7 @@ export default {
align-items: center;
}
.bird-icon{
padding-top: 2
5
%;
padding-top: 2
0
%;
}
.login-wrap{
width: 100%;
...
...
src/pages/myInfo/my-info.vue
View file @
785bc27d
...
...
@@ -11,6 +11,9 @@
<item
:show-arrow=
"true"
@
click
.
native=
"updateVersion"
>
<div
slot=
"name"
>
检查更新
</div>
</item>
<item
:show-arrow=
"true"
@
click
.
native=
"logOut"
>
<div
slot=
"name"
>
退出登录
</div>
</item>
</list-item>
</h-content>
</section>
...
...
@@ -43,6 +46,19 @@ export default {
},
})
},
logOut
()
{
let
vm
=
this
hlsPopup
.
showConfirm
({
title
:
'提示'
,
content
:
'确定退出'
,
onConfirm
:
function
(
index
)
{
if
(
index
===
1
)
{
window
.
localStorage
.
clear
()
vm
.
$router
.
push
(
'/login'
)
}
},
})
},
},
}
</
script
>
...
...
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