航班定位实现
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { CanActivate, Router, ActivatedRouteSnapshot } from '@angular/router';
|
||||
import getCookie from '../utils/get-cookie';
|
||||
import { Utils } from '../utils/utils';
|
||||
|
||||
@Injectable()
|
||||
export class LoginAuthService implements CanActivate {
|
||||
private utils = new Utils();
|
||||
constructor(
|
||||
private router: Router,
|
||||
) { }
|
||||
@@ -34,6 +35,6 @@ export class LoginAuthService implements CanActivate {
|
||||
}
|
||||
|
||||
getToken(): string {
|
||||
return getCookie('token');
|
||||
return this.utils.getCookie('token');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user