From 77817ac4bc2b39eb6b82c0dae1496af223afaf19 Mon Sep 17 00:00:00 2001 From: ZhuDongming <773644075@qq.com> Date: Mon, 27 Apr 2020 14:17:33 +0800 Subject: [PATCH] update --- src/main/webapp/js/moralmap.js | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/main/webapp/js/moralmap.js b/src/main/webapp/js/moralmap.js index 93fb122..c14d7cd 100644 --- a/src/main/webapp/js/moralmap.js +++ b/src/main/webapp/js/moralmap.js @@ -1052,15 +1052,13 @@ var deviceStates; var monitorPointStates; moralMap.refreshState = function (states) { - if (!monitorPointStates) { - monitorPointStates = states; - deviceStates = []; - for (var i in states) { - var state = states[i]; - for (var j in state.devices) { - var device = state.devices[j]; - deviceStates.push(device); - } + monitorPointStates = states; + deviceStates = []; + for (var i in states) { + var state = states[i]; + for (var j in state.devices) { + var device = state.devices[j]; + deviceStates.push(device); } } listView.refreshState(deviceStates); -- Gitblit v1.8.0