初始化项目

This commit is contained in:
caiyuchao committed 2024-11-14 11:06:38 +08:00
1 parent 988b9e6799
commit 4ffac789e1
320 files changed
+34244

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { localStg } from '@/utils/storage';
/** Get token */
export function getToken() {
return localStg.get('token') || '';
}
export const emptyInfo: Api.Auth.UserInfo = {
roles: [],
buttons: [],
permissions: [],
user: null
};
/** Clear auth storage */
export function clearAuthStorage() {
localStg.remove('token');
localStg.remove('refreshToken');
}