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

更新最新

parent d6a4c624
......@@ -3,10 +3,11 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Response } from '@angular/http';
import { Subscription } from 'rxjs';
import { Transfer } from './transfer';
import {Load} from './load';
@Injectable()
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>();
}
private subs: Subscription[];
......@@ -61,6 +62,7 @@ export class Http {
// 跳转登录页面
toLoginPage(time) {
this.load.offLoad();
window.setTimeout(() => {
this.tf.transfer({url: '/login'});
}, 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