| | |
| | | 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' }) |
| | | |
| | |
| | | }) |
| | | |
| | | 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() |
| | | } |
| | | |