fix(game-frontend): bound realtime dashboard refreshes

This commit is contained in:
Hide_D committed 2026-08-09 13:24:36 +00:00
1 parent 43dfe2a3e4
commit d6bab7e4bf
5 files changed
+250 -21

No files matched your search

+6 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, onUnmounted, ref, watch } from 'vue';
import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
import { storeToRefs } from 'pinia';
import { useMediaQuery } from '@vueuse/core';
import PanelCard from '../components/ui/PanelCard.vue';
@@ -92,6 +92,11 @@ onUnmounted(() => {
if (surveyNoticeTimer) {
clearTimeout(surveyNoticeTimer);
}
dashboard.stopRealtime();
});
onMounted(() => {
dashboard.startRealtime();
});
const shiftGeneralTurns = (amount: number) => {