|
@@ -42,7 +42,6 @@ function sendAMessage(name, data) {
|
|
|
}
|
|
|
|
|
|
export const socketErrDialog = ref(false)
|
|
|
-
|
|
|
export function initWebSocket(sid, force) {
|
|
|
if ('WebSocket' in window) {
|
|
|
if (webSocket === null || force) {
|
|
@@ -66,6 +65,9 @@ export function initWebSocket(sid, force) {
|
|
|
|
|
|
webSocket.onclose = function () {
|
|
|
socketErrDialog.value = true
|
|
|
+ if (router.currentRoute.value.path === '/login') {
|
|
|
+ location.reload()
|
|
|
+ }
|
|
|
webSocket = null
|
|
|
let sid
|
|
|
if (router.currentRoute.value.path === '/triageRoomScreen') {
|