1
0
forked from dyf/dyf-vue-ui

多租户平台

This commit is contained in:
2025-06-26 15:29:07 +08:00
commit 796acccf16
355 changed files with 27974 additions and 0 deletions

9
src/utils/auth.ts Normal file
View File

@ -0,0 +1,9 @@
const TokenKey = 'Admin-Token';
const tokenStorage = useStorage<null | string>(TokenKey, null);
export const getToken = () => tokenStorage.value;
export const setToken = (access_token: string) => (tokenStorage.value = access_token);
export const removeToken = () => (tokenStorage.value = null);