| | |
| | | const TokenKey = 'Admin-Token'; |
| | | const PlatKey = 'Admin-Plat'; |
| | | |
| | | const tokenStorage = useStorage<null | string>(TokenKey, null); |
| | | const platStorage = useStorage<null | string>(PlatKey, null); |
| | | |
| | | export const getToken = () => tokenStorage.value; |
| | | |
| | | export const setToken = (access_token: string) => (tokenStorage.value = access_token); |
| | | |
| | | export const removeToken = () => (tokenStorage.value = null); |
| | | |
| | | |
| | | export const getPlat = () => platStorage.value; |
| | | |
| | | export const setPlat = (access_plat: string) => (platStorage.value = access_plat); |
| | | |
| | | export const removePlat = () => (platStorage.value = null); |