From 877bc44463bdf1ce01b93d6c98f82fd9506d34fe Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期一, 31 三月 2025 10:38:27 +0800 Subject: [PATCH] just comment --- src/App.vue | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/App.vue b/src/App.vue index 54b374a..57f6d29 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,6 +6,7 @@ import routerSearch from '@/components/RouterSearch/index.vue' import {useUserStore} from "@/store/modules/user"; import {useTagsViewStore} from "@/store/modules/tagsView"; +import {getAccessToken} from "@/utils/auth"; defineOptions({ name: 'APP' }) @@ -40,7 +41,12 @@ }) const handleUnload = async () => { - await userStore.loginOut() + //await userStore.loginOut() + if (getAccessToken()) { + const loginouturl = import.meta.env.VITE_BASE_URL + import.meta.env.VITE_API_URL + '/system/auth/logout' + '?token=' + getAccessToken() + navigator.sendBeacon(loginouturl, JSON.stringify("")) + } + tagsViewStore.delAllViews() } -- Gitblit v1.9.3