Browse Source

[Mod 0000] 182首页添加对实时数据的支持

houzekong 2 months ago
parent
commit
7484dbf49c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/vent/home/configurable/vent182.vue

+ 2 - 2
src/views/vent/home/configurable/vent182.vue

@@ -68,7 +68,7 @@
         v-if="sysDataType === 'all'"
         :class="{ 'realtime-mode': isDataRealTime }"
         alt="切换数据模式"
-        class="switch-button report-mode right-525px"
+        class="switch-button report-mode right-541px"
         @click="switchDataMode"
       ></div>
       <div class="switch-button icon-goto2D right-421px" @click="goMicroApp('2.5')"></div>
@@ -108,7 +108,7 @@
   }
 
   function refresh() {
-    fetchConfigs('vent_182').then(() => {
+    fetchConfigs(isDataRealTime.value ? 'vent_182_realtime' : 'vent_182').then(() => {
       if (!configs.value.length) {
         configs.value = testConfigVent182;
       }