From 502d00fc6e8eb20dfec87d7678bf2e287e3dee9d Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Tue, 10 Jan 2023 16:42:57 +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 --- proxy.conf.json | 11 +++++++++++ src/app/admin/index/index-routing.module.ts | 2 -- src/app/admin/index/index.module.ts | 4 +--- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 proxy.conf.json diff --git a/proxy.conf.json b/proxy.conf.json new file mode 100644 index 0000000..f0fcba4 --- /dev/null +++ b/proxy.conf.json @@ -0,0 +1,11 @@ +{ + "/api":{ + "target":"https://geo.datav.aliyun.com", + "secure":false, + "logLevel":"debug", + "changeOrigin":true, + "pathRewrite":{ + "^/api":"" + } + } +} diff --git a/src/app/admin/index/index-routing.module.ts b/src/app/admin/index/index-routing.module.ts index 9dd1c26..16ced7b 100644 --- a/src/app/admin/index/index-routing.module.ts +++ b/src/app/admin/index/index-routing.module.ts @@ -2,13 +2,11 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import {IndexComponent} from './index/index.component'; import {TestComponent} from './test/test.component'; -import {OrderStatisticsComponent} from './order-statistics/order-statistics.component'; const routes: Routes = [ { path: '', component: IndexComponent }, { path: 'test', component: TestComponent }, - { path: 'order-statistics', component: OrderStatisticsComponent } ]; @NgModule({ diff --git a/src/app/admin/index/index.module.ts b/src/app/admin/index/index.module.ts index 8f89def..7d48c24 100644 --- a/src/app/admin/index/index.module.ts +++ b/src/app/admin/index/index.module.ts @@ -14,12 +14,10 @@ import {RegionSelectorModule} from '../../common/region-selector/region-selector import {AppCommonModule} from '../../app-common.module'; import { TestComponent } from './test/test.component'; import {NzSpaceModule} from 'ng-zorro-antd/space'; -import { OrderStatisticsComponent } from './order-statistics/order-statistics.component'; - @NgModule({ - declarations: [IndexComponent, TestComponent, OrderStatisticsComponent], + declarations: [IndexComponent, TestComponent], imports: [ CommonModule, SystemRoutingModule,