From 33b9618b77f2e119a2734190d6583ce12f696e34 Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Wed, 5 Aug 2020 14:28:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=9C=B0=E5=9B=BE=E7=BB=98?= =?UTF-8?q?=E5=88=B6=E7=B1=BB=E5=9E=8B=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/jmapNew/shape/Signal/index.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/jmapNew/shape/Signal/index.js b/src/jmapNew/shape/Signal/index.js index ce8885f70..59d03881d 100644 --- a/src/jmapNew/shape/Signal/index.js +++ b/src/jmapNew/shape/Signal/index.js @@ -652,6 +652,12 @@ class Signal extends Group { if (model.isRequestGuide) { this.lamps && this.lamps[0] && this.lamps[0].setAnimationStart(this.style.Signal.lamp.yellowColor); } + const path = window.location.href; + if (model.type == 'PASSING' && path.includes('/map/draw')) { + this.lamps && this.lamps.length && this.lamps.forEach(elem => { + elem.setColor(this.style.Signal.lamp.greenColor); + }); + } } getBoundingRect() {