From bd7069f6f4ee9a55e17185547222878225c258f6 Mon Sep 17 00:00:00 2001 From: joylink_fanyuhong <18706759286@163.com> Date: Thu, 27 Feb 2020 18:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=BF=90=E8=A1=8C=E5=9B=BE?= =?UTF-8?q?=E9=A2=84=E8=A7=88=E5=B0=BA=E5=AF=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/socket.js | 6 +++++- src/utils/baseUrl.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/store/modules/socket.js b/src/store/modules/socket.js index 04bc6bab8..7fbc857b4 100644 --- a/src/store/modules/socket.js +++ b/src/store/modules/socket.js @@ -24,7 +24,11 @@ function handle(state, data) { state.equipmentStatus = msg; break; case 'Simulation_RunFact': // 仿真-列车实际到发车站消息 - state.trainStationList = msg; + let runFactMsg = msg; + if (runFactMsg.constructor !== Array ) { + runFactMsg = [msg]; + } + state.trainStationList = runFactMsg; break; case 'Simulation_Error': // 仿真-异常消息 state.simulationError = msg; diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 506eafc22..39bbea8fe 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -8,7 +8,7 @@ export function getBaseUrl() { // BASE_API = 'http://192.168.3.6:9000'; // 旭强 // BASE_API = 'http://192.168.3.41:9000'; // 张赛 // BASE_API = 'http://192.168.3.82:9000'; // 杜康 - // BASE_API = 'http://b29z135112.zicp.vip'; + BASE_API = 'http://b29z135112.zicp.vip'; // BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康 // BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛 } else {