|
|
|
@ -6,15 +6,15 @@ import {catchError, finalize} from 'rxjs/operators'; |
|
|
|
|
import {mergeMap} from 'rxjs/operators'; |
|
|
|
|
import {Observable} from 'rxjs'; |
|
|
|
|
import {NzMessageService} from "ng-zorro-antd/message"; |
|
|
|
|
import {LocalStorageService} from "./localStorage.service"; |
|
|
|
|
import {USER_TOKEN} from "../data/login/localStorage.namespace"; |
|
|
|
|
import {BrowserStorageService} from "./localStorage.service"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Injectable() |
|
|
|
|
export class InterceptorService implements HttpInterceptor { |
|
|
|
|
constructor( |
|
|
|
|
private message: NzMessageService, |
|
|
|
|
private storage: LocalStorageService, |
|
|
|
|
private storage: BrowserStorageService, |
|
|
|
|
) { |
|
|
|
|
} |
|
|
|
|
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { |
|
|
|
|