|
@@ -142,7 +142,7 @@ const cascaderSend = async ({ projectId, contractId }) => {
|
|
|
}
|
|
|
|
|
|
//获取未读消息数量
|
|
|
-const taskCount = ref(10)
|
|
|
+const taskCount = ref(0)
|
|
|
const getUnreadMessage = async ({ projectId, contractId }) => {
|
|
|
//如果退出登录了,清空轮询
|
|
|
if (isNullES(getToken())) {
|
|
@@ -153,7 +153,7 @@ const getUnreadMessage = async ({ projectId, contractId }) => {
|
|
|
const { isRes, data } = await messageApi.getUnreadMessage({
|
|
|
projectId, contractId,
|
|
|
})
|
|
|
- //taskCount.value = data ?? 0
|
|
|
+ taskCount.value = data ?? 0
|
|
|
if (isRes) {
|
|
|
times.value = 10000
|
|
|
} else {
|