mirror of
https://gitee.com/lijingbo-2021/open-anylink-web.git
synced 2025-12-30 11:02:25 +00:00
解决token刷新碰撞问题
This commit is contained in:
@@ -19,8 +19,10 @@ const myCardDialog = ref()
|
||||
const myAvatar = ref()
|
||||
const userData = userStore()
|
||||
|
||||
onMounted(() => {
|
||||
wsConnect.createWs()
|
||||
onMounted(async () => {
|
||||
setTimeout(() => {
|
||||
wsConnect.createWs()
|
||||
}, 3000) // 延迟启动,防止token刷新碰撞
|
||||
document.addEventListener('click', clickListener)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user