fix(mobile): remove unused logout handler from MobileLayout
This commit is contained in:
@@ -7,7 +7,6 @@ import { useUserStore } from '@/stores/user'
|
|||||||
import { useGroupStore } from '@/stores/group'
|
import { useGroupStore } from '@/stores/group'
|
||||||
import { useTeamStore } from '@/stores/team'
|
import { useTeamStore } from '@/stores/team'
|
||||||
import { useNotificationStore } from '@/stores/notification'
|
import { useNotificationStore } from '@/stores/notification'
|
||||||
import { resetDeviceMode } from '@/mobile/useDevice'
|
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@@ -100,13 +99,6 @@ const unreadCount = computed(() => notificationStore.unreadCount)
|
|||||||
function goNotifications() {
|
function goNotifications() {
|
||||||
router.push('/mobile-notifications')
|
router.push('/mobile-notifications')
|
||||||
}
|
}
|
||||||
|
|
||||||
// 退出登录
|
|
||||||
function handleLogout() {
|
|
||||||
resetDeviceMode()
|
|
||||||
userStore.logout()
|
|
||||||
router.push({ name: 'Login' })
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user