import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; import { SharedModule } from './shared.module'; import { AppRoutingModule } from './app-routing.module'; import { HTTP_INTERCEPTORS } from '@angular/common/http'; import { TokenInterceptor, APPINIT_PROVIDES } from 'ng-yunzai-mobile'; import { CookieInterceptor } from 'ng-yunzai-mobile'; import { IndexComponent } from './index/index.component'; import { BrowserModule } from "@angular/platform-browser"; import { BrowserAnimationsModule } from "@angular/platform-browser/animations"; import { HttpClientModule } from '@angular/common/http'; @NgModule({ declarations: [AppComponent, IndexComponent], imports: [ BrowserModule, BrowserAnimationsModule, HttpClientModule, SharedModule, AppRoutingModule ], providers: [ { provide: HTTP_INTERCEPTORS, useClass: CookieInterceptor, multi: true }, { provide: HTTP_INTERCEPTORS, useClass: TokenInterceptor, multi: true }, ...APPINIT_PROVIDES ], bootstrap: [AppComponent] }) export class AppModule {}