退出系统重新登录会弹出重新登录弹窗
This commit is contained in:
parent
ad248250a1
commit
7c4025954a
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user