From ee283b36dd2f28a6c817bc9256ac4870d5343792 Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Sat, 17 Aug 2024 17:25:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/app.config.ts | 6 ++++-- .../trade/comp-order/comp-order.component.html | 3 ++- .../trade/comp-order/comp-order.component.ts | 13 +++++++++++++ .../order-after-sales.component.html | 18 +++++++++--------- .../order-refund/order-refund.component.html | 6 +++--- src/app/services/trade/order-coupon.service.ts | 12 ++++++++++++ 6 files changed, 43 insertions(+), 15 deletions(-) diff --git a/src/app/app.config.ts b/src/app/app.config.ts index ada3192..a8c9593 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.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 } ] }; diff --git a/src/app/pages/trade/comp-order/comp-order.component.html b/src/app/pages/trade/comp-order/comp-order.component.html index 8aca036..e81083f 100644 --- a/src/app/pages/trade/comp-order/comp-order.component.html +++ b/src/app/pages/trade/comp-order/comp-order.component.html @@ -85,6 +85,7 @@