From f40918f9c3b4de685190ef0aec678fff4d3bca47 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Wed, 08 Feb 2023 16:55:25 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/srs-police-affairs
---
src/views/home/components/bottomContainer.vue | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diff --git a/src/views/home/components/bottomContainer.vue b/src/views/home/components/bottomContainer.vue
index 1227cd1..f1a9869 100644
--- a/src/views/home/components/bottomContainer.vue
+++ b/src/views/home/components/bottomContainer.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2023-01-13 15:52:59
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-02-04 15:23:10
+ * @LastEditTime: 2023-02-07 11:27:50
* @FilePath: \srs-police-affairs\src\views\home\components\bottomContainer.vue
* @Description:
*
@@ -148,6 +148,8 @@
</template>
<script>
+let alarmTiming = null
+
import vueSeamlessScroll from 'vue-seamless-scroll'
import { getAnswerPolices, getAlarmList } from "@/api/home/index.js"
@@ -560,9 +562,17 @@
return this.dateFormat(item)
})
+ if (alarmTiming != null) {
+ clearInterval(alarmTiming)
+ alarmTiming = null
+ }
+
if (type == 0) {
await this.getAnswerPolices()
+ alarmTiming = setInterval(() => {
+ this.getAnswerPolices()
+ }, 60000)
} else {
this.currentPage = 1
--
Gitblit v1.9.3