mirror of
https://github.com/anatolykopyl/vk-bingo.git
synced 2026-03-26 12:54:25 +00:00
Added sse and a new screen
This commit is contained in:
18
frontend/src/views/Game/EndGame.vue
Normal file
18
frontend/src/views/Game/EndGame.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div>
|
||||
<button @click="endGame">
|
||||
Закончить игру
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import axios from 'axios'
|
||||
import { useRouter } from 'vue-router';
|
||||
const router = useRouter()
|
||||
|
||||
function endGame() {
|
||||
axios.post(process.env.VUE_APP_BACKEND + '/end')
|
||||
router.push('/login')
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user