diff --git a/proxy.conf.js b/proxy.conf.js index 28ccca86..2fe9e131 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-18 09:51:21 * @LastEditors : Shiming - * @LastEditTime : 2022-05-07 10:35:23 + * @LastEditTime : 2022-05-07 14:49:15 * @FilePath : \\tms-obc-web\\proxy.conf.js * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -30,7 +30,7 @@ module.exports = { // }, '//api': { target: { - host: 'tms-api-dev.eascs.com', + host: 'tms-api-test.eascs.com', protocol: 'https:', port: 443 }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 32f1b6a4..d6f7b0c7 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -42,6 +42,7 @@ const APPINIT_PROVIDES = [ multi: true }, { provide: DEFAULT_CURRENCY_CODE, useValue: '¥' }, + { provide: RouteReuseStrategy, useClass: ReuseTabStrategy, deps: [ReuseTabService] }, AuthGuard ]; // #endregion @@ -55,6 +56,8 @@ import { SharedModule } from './shared/shared.module'; import { STWidgetModule } from './shared/widget/st-widget.module'; import { registerLocaleData } from '@angular/common'; import { AuthGuard } from './core/guards/auth.guard'; +import { RouteReuseStrategy } from '@angular/router'; +import { ReuseTabService, ReuseTabStrategy } from '@delon/abc/reuse-tab'; @NgModule({ declarations: [AppComponent], diff --git a/src/app/global-config.module.ts b/src/app/global-config.module.ts index faeed3b0..8ffa9a12 100644 --- a/src/app/global-config.module.ts +++ b/src/app/global-config.module.ts @@ -12,6 +12,7 @@ import { environment } from '@env/environment'; const alainConfig: AlainConfig = { st: { + bordered: true, req: { method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' } }, res: { reName: { list: 'data.records', total: 'data.total' } }, page: { show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000], toTop: false }, diff --git a/src/app/layout/pro/components/menu/menu.component.html b/src/app/layout/pro/components/menu/menu.component.html index 272c43b3..400db4c5 100644 --- a/src/app/layout/pro/components/menu/menu.component.html +++ b/src/app/layout/pro/components/menu/menu.component.html @@ -14,7 +14,7 @@ - {{ i.text }} + {{ i.text }} {{ i.text }}