退出登录
This commit is contained in:
@@ -9,7 +9,10 @@
|
||||
:key="v.path"
|
||||
class="nav-item"
|
||||
:class="{
|
||||
active: v.path === '/' ? activePath === v.path : new RegExp(`^${v.path}`).test(activePath)
|
||||
active:
|
||||
v.path === '/'
|
||||
? activePath === v.path
|
||||
: new RegExp(`^${v.path}`).test(activePath)
|
||||
}"
|
||||
@click="onNavItemClick(v.path)"
|
||||
>
|
||||
@@ -141,8 +144,7 @@
|
||||
hideProfilePopover()
|
||||
ElMessageBox.confirm('Are you sure to log off?')
|
||||
.then(() => {
|
||||
userInfoStore.logout()
|
||||
router.go(0)
|
||||
userInfoStore.logout(true)
|
||||
})
|
||||
.catch(() => {})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user