mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
13 lines
260 B
TypeScript
13 lines
260 B
TypeScript
import { localStg } from '@/utils/storage';
|
|
|
|
/** Get token */
|
|
export function getToken() {
|
|
return localStg.get('token') || '';
|
|
}
|
|
|
|
/** Clear auth storage */
|
|
export function clearAuthStorage() {
|
|
localStg.remove('token');
|
|
localStg.remove('refreshToken');
|
|
}
|