提交代码

master
胡锐 1 month ago
parent 3109fee9c1
commit 1b860ac631
  1. 6
      src/app/app.config.ts
  2. 2
      src/environments/environment.ts

@ -1,5 +1,5 @@
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
import { provideRouter } from '@angular/router';
import {provideRouter, RouteReuseStrategy} from '@angular/router';
import { routes } from './app.routes';
import { provideClientHydration } from '@angular/platform-browser';
@ -11,6 +11,7 @@ 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);
@ -24,6 +25,7 @@ export const appConfig: ApplicationConfig = {
provideAnimations(),
BrowserAnimationsModule,
InitGuardService, // 校验登录
{ provide: HTTP_INTERCEPTORS, useClass: InterceptorService, multi: true}
{ provide: HTTP_INTERCEPTORS, useClass: InterceptorService, multi: true},
{ provide: RouteReuseStrategy, useClass: AiRouteReuseStrategy }
]
};

@ -4,7 +4,7 @@
export const environment = {
production: false,
baseUrl: 'http://localhost:9802/brest/', // 测试环境服务器地址(请求数据地址)
baseUrl: 'https://test-oil.dctpay.com/brest/', // 测试环境服务器地址(请求数据地址)
imageUrl: 'https://test-oil.dctpay.com/filesystem/',
};

Loading…
Cancel
Save