NEZ-2665 fix: 退出登录 直接返回登录页面

This commit is contained in:
zhangyu
2023-03-09 16:30:41 +08:00
parent b318337fd1
commit 252d370eb8

View File

@@ -181,7 +181,8 @@ export default {
logout () {
this.$get('logout').then(() => {
this.logoutSuccess()
document.location.href = '/'
// document.location.href = '/'
this.$router.push('/login')
})
},
showPinDialog () {
@@ -202,6 +203,7 @@ export default {
initEvent () {
bus.$on('login', () => {
this.username = localStorage.getItem('nz-username')
this.name = localStorage.getItem('nz-username')
// this.refreshLang()
})
// if (window.history && window.history.pushState) {