From 954ee991faa2441df3b490f5221f1e222a868dff Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Wed, 11 Sep 2024 13:44:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=88=97=E8=A1=A8=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/newMap/display/trainingList/trainingLeftSlider.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/newMap/display/trainingList/trainingLeftSlider.vue b/src/views/newMap/display/trainingList/trainingLeftSlider.vue index 1b20ddced..75e5649e4 100644 --- a/src/views/newMap/display/trainingList/trainingLeftSlider.vue +++ b/src/views/newMap/display/trainingList/trainingLeftSlider.vue @@ -58,9 +58,10 @@ export default { }, methods: { initLoadPage() { - const trainingType = this.$store.state.training.domConfig ? this.$store.state.training.domConfig.trainingType : ''; + let trainingType = this.$store.state.training.domConfig ? this.$store.state.training.domConfig.trainingType : ''; + trainingType = trainingType ? trainingType.toLowerCase() : null; // labels: ['车站', '控制权'] - const data = {mapId: this.mapId, type: trainingType.toLowerCase()}; + const data = {mapId: this.mapId, type: trainingType}; if (this.$route.query.labels) { const labels = this.$route.query.labels.split('-'); const labelMap = { loc: '现地', dis: '行调', section: '区段', signal: '信号机', switch: '道岔', stand: '站台', station: '车站', control: '控制权' };