fix
This commit is contained in:
parent
5b3203e5aa
commit
9bde8ff7ee
@ -67,7 +67,9 @@
|
||||
router.push('/login');
|
||||
return
|
||||
}
|
||||
return response.json()
|
||||
const res = response.json()
|
||||
console.log(res)
|
||||
return res
|
||||
})
|
||||
.then(data => {
|
||||
team.value = data
|
||||
@ -157,13 +159,17 @@
|
||||
intervalId = setInterval(() => {
|
||||
getTeam()
|
||||
getGame()
|
||||
}, 1000);
|
||||
}, 2000);
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
clearInterval(intervalId);
|
||||
next();
|
||||
});
|
||||
});
|
||||
|
||||
// function formatText(text: string) {
|
||||
// return text.replaceAll(' ', ' ')
|
||||
// }
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -181,19 +187,12 @@
|
||||
<div class="center-block-custom">
|
||||
<form @submit.prevent="addAction">
|
||||
<div>
|
||||
<input
|
||||
class="input-custom"
|
||||
v-model="place"
|
||||
type="text"
|
||||
placeholder="Место назначения (А-1, а-1, а1)"
|
||||
<input class="input-custom" v-model="place" type="text" placeholder="Место назначения (А-1, а-1, а1)"
|
||||
:disabled="gameState !== 'RUN'">
|
||||
</div>
|
||||
<div class="button-container">
|
||||
<div class="second-color info-custom">{{ gameStateText }}</div>
|
||||
<button
|
||||
class="button-custom"
|
||||
type="submit"
|
||||
:disabled="gameState !== 'RUN'">Поехали</button>
|
||||
<button class="button-custom" type="submit" :disabled="gameState !== 'RUN'">Поехали</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@ -205,12 +204,7 @@
|
||||
<div v-if="!team || !team.actions.length">
|
||||
<div class="center-message">
|
||||
<div class="qr">
|
||||
<VueQrcode
|
||||
:value="qrurl"
|
||||
:options="qrOptions"
|
||||
tag="svg"
|
||||
class="qr-code"
|
||||
/>
|
||||
<VueQrcode :value="qrurl" :options="qrOptions" tag="svg" class="qr-code" />
|
||||
<div>
|
||||
Пора решать загадку
|
||||
</div>
|
||||
@ -298,7 +292,8 @@ body {
|
||||
|
||||
.message-content {
|
||||
font-weight: 500;
|
||||
white-space: pre-line;
|
||||
/* white-space: pre-line; */
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
.message-footer {
|
||||
@ -332,4 +327,3 @@ body {
|
||||
width: 200px;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user