Commit 785bc27d authored by 李晓兵's avatar 李晓兵

'退出登录'

parent 3f67c6fa
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
align-items: center; align-items: center;
} }
.bird-icon{ .bird-icon{
padding-top: 25%; padding-top: 20%;
} }
.login-wrap{ .login-wrap{
width: 100%; width: 100%;
......
...@@ -11,6 +11,9 @@ ...@@ -11,6 +11,9 @@
<item :show-arrow="true" @click.native="updateVersion"> <item :show-arrow="true" @click.native="updateVersion">
<div slot="name">检查更新</div> <div slot="name">检查更新</div>
</item> </item>
<item :show-arrow="true" @click.native="logOut">
<div slot="name">退出登录</div>
</item>
</list-item> </list-item>
</h-content> </h-content>
</section> </section>
...@@ -43,6 +46,19 @@ export default { ...@@ -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> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment