Step F1:前端工程骨架 & 登录鉴权

This commit is contained in:
Cheng Zhou
2025-12-16 20:21:30 +08:00
parent 5eab324c50
commit 78d13d077c
25 changed files with 523 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
const TOKEN_KEY = "ctms_token";
export const getToken = (): string | null => localStorage.getItem(TOKEN_KEY);
export const setToken = (token: string): void => {
localStorage.setItem(TOKEN_KEY, token);
};
export const clearToken = (): void => {
localStorage.removeItem(TOKEN_KEY);
};