From 9e57671572318e29a4352370ebd9dddaadaf6a4d Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Wed, 13 Apr 2022 15:46:25 +0800 Subject: [PATCH] edit --- proxy.conf.js | 2 +- .../amap/amap-path-simplifier/amap-path-simplifier.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy.conf.js b/proxy.conf.js index e6de13f2..396f43cd 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -20,7 +20,7 @@ module.exports = { // } '//api': { target: { - host: 'tms-api-test.eascs.com', + host: 'tms-api.yunduoxing.com', protocol: 'https:', port: 443 }, diff --git a/src/app/shared/components/amap/amap-path-simplifier/amap-path-simplifier.component.ts b/src/app/shared/components/amap/amap-path-simplifier/amap-path-simplifier.component.ts index 4bda83dd..f1b990ac 100644 --- a/src/app/shared/components/amap/amap-path-simplifier/amap-path-simplifier.component.ts +++ b/src/app/shared/components/amap/amap-path-simplifier/amap-path-simplifier.component.ts @@ -153,7 +153,7 @@ export class AmapPathSimplifierComponent implements OnInit, OnChanges, OnDestroy }); this.setData(this.pathList); - if (this.pathList.length > 0) { + if (this.mapList.length > 0) { this.setPathIndex(this.selectedIndex); this.getPoiByPositon('起', 'blue', this.mapList[0]?.lnglat, '时间:' + this.amapService.formatTime(this.mapList[0]?.time)); this.getPoiByPositon(