2024-07-01 06:13:08 +00:00
|
|
|
<script setup>
|
2024-07-01 06:22:12 +00:00
|
|
|
import { onMounted, watch } from 'vue'
|
2024-07-01 06:13:08 +00:00
|
|
|
import TheLiveLogs from './components/TheLiveLogs.vue'
|
|
|
|
import TheScores from './components/TheScores.vue'
|
|
|
|
import { resetState, fullReload, socketConnected } from "@/socket";
|
|
|
|
|
|
|
|
|
|
|
|
watch(socketConnected, (isConnected) => {
|
|
|
|
if (isConnected) {
|
|
|
|
resetState()
|
|
|
|
fullReload()
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
fullReload()
|
|
|
|
})
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2024-07-01 06:22:12 +00:00
|
|
|
<TheScores></TheScores>
|
|
|
|
<TheLiveLogs></TheLiveLogs>
|
2024-07-01 06:13:08 +00:00
|
|
|
</template>
|