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,