|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
import { Component } from '@angular/core'; |
|
|
|
|
import { HttpClient } from '@angular/common/http' |
|
|
|
|
import { Data } from './interface' |
|
|
|
|
import { Router,ActivatedRoute } from '@angular/router' |
|
|
|
|
import { IsLoginService } from './is-login.service' //引入服务
|
|
|
|
|
import {CacheTokenService} from './http-interceptors/cache-token.service' //引入服务
|
|
|
|
@ -14,7 +13,6 @@ import {CacheTokenService} from './http-interceptors/cache-token.service' //引
|
|
|
|
|
}) |
|
|
|
|
export class AppComponent { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
constructor(private http:HttpClient,private router:Router,public token:CacheTokenService,public isLogin:IsLoginService) { } |
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|