fix: 大屏退出登录
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
fyy 2025-07-11 15:59:53 +08:00
parent b7aec71e80
commit 9279f2246a

View File

@ -48,14 +48,18 @@
import { useRouter } from 'vue-router'
import { preferences } from '@vben/preferences';
import { useFlexibleRem } from '#/utils/useFlexibleRem'
import { useAuthStore } from '../../../store'
useFlexibleRem()
const router = useRouter()
const authStore = useAuthStore();
// 退
const logout = () => {
const logout = async () => {
// token
console.log('用户退出')
router.push('/login') // /login
await authStore.logout()
router.push('/auth/login') // /login
}
//
const goToProperty = () => {