Commit 33beefd5 authored by nick zheng's avatar nick zheng

fix: 应用页退出登录无效

parent 5e24a6a4
...@@ -117,11 +117,13 @@ function handleBackPreviousPage() { ...@@ -117,11 +117,13 @@ function handleBackPreviousPage() {
router.go(-1) router.go(-1)
} }
function handleDropdownSelect(key: number) { function handleDropdownSelect(key: string) {
if (key === 1) { switch (key) {
userStore.logout().then(() => { case 'logout':
router.push({ name: 'Login' }) userStore.logout().then(() => {
}) router.push({ name: 'Login' })
})
break
} }
} }
......
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