fix: use _jwtToken
This commit is contained in:
parent
3bc2dfadce
commit
f8f8780f97
|
@ -55,7 +55,7 @@ export class AccountApi {
|
||||||
ret = this.checkSuccessVal<LoginResponse>(ret);
|
ret = this.checkSuccessVal<LoginResponse>(ret);
|
||||||
|
|
||||||
if (ret) {
|
if (ret) {
|
||||||
this.jwtToken = (ret as LoginResponse).token;
|
this._jwtToken = (ret as LoginResponse).token;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ export class AccountApi {
|
||||||
}
|
}
|
||||||
|
|
||||||
public async logout(): Promise<boolean> {
|
public async logout(): Promise<boolean> {
|
||||||
this.jwtToken = undefined;
|
this._jwtToken = undefined;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue