Commit 2937d719 authored by van.chen's avatar van.chen

更新最新

parent d6a4c624
...@@ -3,10 +3,11 @@ import { HttpClient, HttpHeaders } from '@angular/common/http'; ...@@ -3,10 +3,11 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Response } from '@angular/http'; import { Response } from '@angular/http';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { Transfer } from './transfer'; import { Transfer } from './transfer';
import {Load} from './load';
@Injectable() @Injectable()
export class Http { export class Http {
constructor(private http: HttpClient, private tf: Transfer) { constructor(private http: HttpClient, private tf: Transfer, private load: Load) {
this.subs = new Array<Subscription>(); this.subs = new Array<Subscription>();
} }
private subs: Subscription[]; private subs: Subscription[];
...@@ -61,6 +62,7 @@ export class Http { ...@@ -61,6 +62,7 @@ export class Http {
// 跳转登录页面 // 跳转登录页面
toLoginPage(time) { toLoginPage(time) {
this.load.offLoad();
window.setTimeout(() => { window.setTimeout(() => {
this.tf.transfer({url: '/login'}); this.tf.transfer({url: '/login'});
}, time); }, time);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment