航班定位实现

This commit is contained in:
zhouyuejun
2019-02-14 14:45:40 +08:00
parent 33a685e4ce
commit 107494c097
18 changed files with 412 additions and 1573 deletions
+3 -2
View File
@@ -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');
}
}