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