style(projects): format code

This commit is contained in:
Soybean
2023-12-14 21:45:29 +08:00
parent a176dc443e
commit a748166399
127 changed files with 2472 additions and 3006 deletions

View File

@ -1,15 +1,11 @@
import { localStg } from '@/utils/storage';
/**
* get token
*/
/** Get token */
export function getToken() {
return localStg.get('token') || '';
}
/**
* get user info
*/
/** Get user info */
export function getUserInfo() {
const emptyInfo: Api.Auth.UserInfo = {
userId: '',
@ -21,9 +17,7 @@ export function getUserInfo() {
return userInfo;
}
/**
* clear auth storage
*/
/** Clear auth storage */
export function clearAuthStorage() {
localStg.remove('token');
localStg.remove('refreshToken');