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