diff --git a/src/jmapNew/theme/xian_01/menus/index.vue b/src/jmapNew/theme/xian_01/menus/index.vue index 1972c3258..2d1c4fb81 100644 --- a/src/jmapNew/theme/xian_01/menus/index.vue +++ b/src/jmapNew/theme/xian_01/menus/index.vue @@ -153,17 +153,19 @@ export default { if (display) { const codeList = [...display.switchStationCodeList]; let relStationCodeList = []; + let ciStaionCode = ''; codeList.sort((a, b) => { const stationA = this.$store.getters['map/getDeviceByCode'](a); const stationB = this.$store.getters['map/getDeviceByCode'](b); if (stationA.relStationCodeList && stationA.relStationCodeList.length > 0 && relStationCodeList.length <= 0) { relStationCodeList = [...stationA.relStationCodeList]; + ciStaionCode = stationA.code; relStationCodeList.push(stationA.code); } return stationA.kmRange - stationB.kmRange; }); - const currentStation = this.$store.getters['map/getDeviceByCode'](roleDeviceCode); - const currentNode = {label: currentStation.name, children: []}; + const ciStaion = this.$store.getters['map/getDeviceByCode'](ciStaionCode); + const currentNode = {label: ciStaion.name, children: []}; codeList.forEach(code=>{ let node; const station = this.$store.getters['map/getDeviceByCode'](code);