退出系统重新登录会弹出重新登录弹窗

This commit is contained in:
gexinzhineng/gxzn27 2023-05-23 13:31:34 +08:00
parent ad248250a1
commit 7c4025954a

View File

@ -27,16 +27,19 @@ const goMyList = () => {
name: 'MyNotifyMessage'
})
}
let timer: any = 0
// ========== =========
onMounted(() => {
//
getUnreadCount()
//
setInterval(() => {
timer = setInterval(() => {
getUnreadCount()
}, 1000 * 60 * 2)
})
onUnmounted(() => {
clearInterval(timer)
})
</script>
<template>
<div class="message">