Browse Source

修复BUG

zhangchuang 2 months ago
parent
commit
c89fd6af13
2 changed files with 4 additions and 2 deletions
  1. 2 0
      src/components/HomeChart/index.vue
  2. 2 2
      src/views/HealthStatusAnalysis/mock.vue

+ 2 - 0
src/components/HomeChart/index.vue

@@ -174,6 +174,7 @@ const initChart = () => {
 };
 
 const startDataUpdate = () => {
+  console.log('startDataUpdate 继续加载')
   updateData.value = true; // 允许数据更新
   if (updateTimeout) {
     clearTimeout(updateTimeout); // 清除之前的定时器
@@ -182,6 +183,7 @@ const startDataUpdate = () => {
 };
 
 const pauseDataUpdate = () => {
+  console.log('pauseDataUpdate 暂停数据')
   updateData.value = false; // 暂停数据更新
   if (updateTimeout) {
     clearTimeout(updateTimeout); // 清除之前的定时器

+ 2 - 2
src/views/HealthStatusAnalysis/mock.vue

@@ -354,8 +354,8 @@
               {{ healthyStatusText.name }}
             </div>
           </div>
-          <div class="status-btn" v-if="isSuspend"  @click="goResult(true)">继续加载</div>
-          <div class="status-btn" v-else @click="goResult(false)">暂停数据</div>
+          <div class="status-btn" v-if="isSuspend"  @click="goResult(false)">继续加载</div>
+          <div class="status-btn" v-else @click="goResult(true)">暂停数据</div>
         </div>
 
         <div class="history-all">