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 = () => {