From bc78028cd869f067ce3c8a8af4bf0a6399ac5067 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Sun, 5 Jun 2022 12:31:30 +0200 Subject: Repair bug - multiple socket connections --- src/services/CommandsService.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/services') diff --git a/src/services/CommandsService.js b/src/services/CommandsService.js index 18ef243..2f6235e 100644 --- a/src/services/CommandsService.js +++ b/src/services/CommandsService.js @@ -39,7 +39,8 @@ export default { window.open('https://github.com/jdlugosz963/lom_frontend/blob/master/README.md', '_blank'); }, - logout() { + logout(searcher) { + searcher.$emit('dissconect_socket') AuthService.logout() store.dispatch('logout') router.push('/login') -- cgit v1.2.3