|
@@ -469,9 +469,9 @@ function getMonitor(flag = false) {
|
|
timer = setTimeout(
|
|
timer = setTimeout(
|
|
async () => {
|
|
async () => {
|
|
await getDeviceList();
|
|
await getDeviceList();
|
|
- if (timer) {
|
|
|
|
- timer = null;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (timer) {
|
|
|
|
+ // timer = null;
|
|
|
|
+ // }
|
|
getMonitor();
|
|
getMonitor();
|
|
},
|
|
},
|
|
flag ? 0 : 3000
|
|
flag ? 0 : 3000
|
|
@@ -512,7 +512,7 @@ async function getDeviceList() {
|
|
function onChangeTab(tab) {
|
|
function onChangeTab(tab) {
|
|
activeKey.value = tab;
|
|
activeKey.value = tab;
|
|
if (activeKey.value == 'device') {
|
|
if (activeKey.value == 'device') {
|
|
- clearTimeout(timer1);
|
|
|
|
|
|
+ // clearTimeout(timer1);
|
|
getSubStationList();
|
|
getSubStationList();
|
|
getStationList1();
|
|
getStationList1();
|
|
} else {
|
|
} else {
|