From 9dce39875edf6e9a2a64a9bbc63e4f8ed97c7987 Mon Sep 17 00:00:00 2001 From: Sum1Dream <418471657@qq.com> Date: Thu, 11 Apr 2024 13:42:15 +0800 Subject: [PATCH] 1 --- src/app/utils/Interceptor.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/utils/Interceptor.service.ts b/src/app/utils/Interceptor.service.ts index 698a14c..2f7ca2a 100644 --- a/src/app/utils/Interceptor.service.ts +++ b/src/app/utils/Interceptor.service.ts @@ -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, next: HttpHandler): Observable> {