|
@@ -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)
|
|
|
}
|