generated from VLADIMIR/template_frontend
add pooling for game
This commit is contained in:
@@ -8,6 +8,7 @@ import { ref } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import PlaceBlock from '@/components/PlaceBlock.vue'
|
||||
import GameInputForm from '@/components/GameInputForm.vue'
|
||||
import { useSimplePolling } from '@/composables/useSimplePolling';
|
||||
|
||||
const client = getAuthClient()
|
||||
const message = useMessage()
|
||||
@@ -63,6 +64,10 @@ type AdvancedPlace = {
|
||||
place: Place;
|
||||
mode: string;
|
||||
}
|
||||
|
||||
useSimplePolling(() => {
|
||||
getStory()
|
||||
}, 2000);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user