修复了退出登录 TOKEN没清空的问题
Publish to npm / publish (push) Failing after 14s
Publish to npm / publish (push) Failing after 14s
This commit is contained in:
+1
-1
@@ -311,7 +311,7 @@ export class SimApiCore {
|
||||
|
||||
async logout(url?: string | null): Promise<any> {
|
||||
if (url !== null) {
|
||||
return this.query(url ?? this.auth.logout_url).catch(() => true)
|
||||
this.query(url ?? this.auth.logout_url).catch(() => true)
|
||||
}
|
||||
this.removeToken()
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user