Kaynağa Gözat

消息提醒

ZaiZai 1 yıl önce
ebeveyn
işleme
352bc2ca45
2 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 1 1
      public/version.json
  2. 3 1
      src/layout/index.vue

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "value": "20240627160818"
+  "value": "20240627171518"
 }

+ 3 - 1
src/layout/index.vue

@@ -134,9 +134,11 @@ const msgCount = ref({
 })
 
 //项目合同段的ID
+let times
 const cascaderSend = async ({ projectId, contractId }) => {
     await getUnreadMessage({ projectId, contractId })
-    setInterval(async () => {
+    if (!isNullES(times)) clearInterval(times)
+    times = setInterval(async () => {
         await getUnreadMessage({ projectId, contractId })
     }, 10000)
 }