fix: oauth (#2640)

* fix: oauth

* remove log

* fix: oauth dispatch
This commit is contained in:
Archer
2024-09-08 20:56:33 +08:00
committed by GitHub
parent 1a33642635
commit 91ec895fd2
3 changed files with 38 additions and 32 deletions

View File

@@ -3,8 +3,8 @@ import { loginOut } from '@/web/support/user/api';
const tokenKey = 'token';
export const clearToken = () => {
try {
loginOut();
localStorage.removeItem(tokenKey);
return loginOut();
} catch (error) {
error;
}