|
|
|
@ -1,5 +1,5 @@ |
|
|
|
|
import { ApplicationConfig, importProvidersFrom } from '@angular/core'; |
|
|
|
|
import {provideRouter, RouteReuseStrategy} from '@angular/router'; |
|
|
|
|
import { provideRouter } from '@angular/router'; |
|
|
|
|
|
|
|
|
|
import { routes } from './app.routes'; |
|
|
|
|
import { provideClientHydration } from '@angular/platform-browser'; |
|
|
|
@ -11,7 +11,6 @@ import {HTTP_INTERCEPTORS, HttpClientModule} from '@angular/common/http'; |
|
|
|
|
import {BrowserAnimationsModule, provideAnimations} from '@angular/platform-browser/animations'; |
|
|
|
|
import {InitGuardService} from "./utils/initGuard.service"; |
|
|
|
|
import {InterceptorService} from "./utils/Interceptor.service"; |
|
|
|
|
import {AiRouteReuseStrategy} from "./utils/routeReuseStrategy"; |
|
|
|
|
|
|
|
|
|
registerLocaleData(zh); |
|
|
|
|
|
|
|
|
@ -25,7 +24,6 @@ export const appConfig: ApplicationConfig = { |
|
|
|
|
provideAnimations(), |
|
|
|
|
BrowserAnimationsModule, |
|
|
|
|
InitGuardService, // 校验登录
|
|
|
|
|
{ provide: HTTP_INTERCEPTORS, useClass: InterceptorService, multi: true}, |
|
|
|
|
{ provide: RouteReuseStrategy, useClass: AiRouteReuseStrategy } |
|
|
|
|
{ provide: HTTP_INTERCEPTORS, useClass: InterceptorService, multi: true} |
|
|
|
|
] |
|
|
|
|
}; |
|
|
|
|