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