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

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' name: 'MyNotifyMessage'
}) })
} }
let timer: any = 0
// ========== ========= // ========== =========
onMounted(() => { onMounted(() => {
// //
getUnreadCount() getUnreadCount()
// //
setInterval(() => { timer = setInterval(() => {
getUnreadCount() getUnreadCount()
}, 1000 * 60 * 2) }, 1000 * 60 * 2)
}) })
onUnmounted(() => {
clearInterval(timer)
})
</script> </script>
<template> <template>
<div class="message"> <div class="message">