styling update

This commit is contained in:
2024-05-03 20:50:50 +02:00
parent b4797365f5
commit b70c90351c
3 changed files with 7 additions and 5 deletions

View File

@ -7,7 +7,7 @@
<script setup lang="ts">
import Game from '@/components/Game.vue'
import Login from '@/components/screens/Login.vue'
import { onMounted, type Ref, ref } from 'vue'
import { onMounted, onUnmounted, type Ref, ref } from 'vue'
import SocketioService from '@/services/socketio.service';
const screen:Ref<string> = ref('login');
@ -15,4 +15,8 @@ const screen:Ref<string> = ref('login');
onMounted(() => {
SocketioService.setupSocketConnection();
});
onUnmounted(() => {
SocketioService.disconnect();
});
</script>