refactor: code review

This commit is contained in:
meilin.huang
2023-12-27 19:55:36 +08:00
parent 4ac9f02d6a
commit a0582192bf
8 changed files with 32 additions and 21 deletions

View File

@@ -33,7 +33,9 @@ export function getThemeConfig() {
return getLocal('themeConfig');
}
// 清除用户相关的用户信息
/**
* 清除当前登录用户相关信息
*/
export function clearUser() {
removeLocal(TokenKey);
removeLocal(UserKey);