refactor ts

This commit is contained in:
LiuHao
2023-04-02 01:01:56 +08:00
parent 5c87f1cb2c
commit 251d2411f2
264 changed files with 15432 additions and 13015 deletions

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

@ -0,0 +1,9 @@
import Cookies from 'js-cookie';
const TokenKey = 'Admin-Token';
export const getToken = () => Cookies.get(TokenKey);
export const setToken = (token: string) => Cookies.set(TokenKey, token);
export const removeToken = () => Cookies.remove(TokenKey);