更新前端src/views/websocket目录文件
This commit is contained in:
parent
487c3fd535
commit
6ced999258
@ -64,6 +64,7 @@ export default {
|
||||
})
|
||||
},
|
||||
error => {
|
||||
disconnect()
|
||||
console.error('连接失败: ' + error)
|
||||
}
|
||||
)
|
||||
@ -80,11 +81,12 @@ export default {
|
||||
}
|
||||
)
|
||||
}
|
||||
stompClient = null
|
||||
}
|
||||
|
||||
function initialize() {
|
||||
connection()
|
||||
timeInterval = setInterval(() => {
|
||||
const timeInterval = setInterval(() => {
|
||||
if (!isLoginStatus()) {
|
||||
disconnect()
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user