fix: type fix
This commit is contained in:
parent
54bc523465
commit
ca796b03f5
@ -2,7 +2,8 @@
|
|||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
const place = ref("")
|
const place = ref("")
|
||||||
const team = ref({})
|
// Здесь тип поправь если че
|
||||||
|
const team = ref()
|
||||||
|
|
||||||
function getTeam() {
|
function getTeam() {
|
||||||
fetch("http://localhost:8090/team", {
|
fetch("http://localhost:8090/team", {
|
||||||
@ -30,13 +31,14 @@ import { ref } from 'vue';
|
|||||||
<div v-if="!team.actions.length">
|
<div v-if="!team.actions.length">
|
||||||
Пора решать загадку
|
Пора решать загадку
|
||||||
</div>
|
</div>
|
||||||
<div v-else v-for="action in team.actions">
|
<template v-else>
|
||||||
|
<div v-for="action in team.actions" :key="action">
|
||||||
<p>{{ action.text }}</p>
|
<p>{{ action.text }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<input v-model="place" placeholder="Место назначения (Пример А-1, регистр не важен, тире можно опустить)" />
|
<input v-model="place" placeholder="Место назначения (Пример А-1, регистр не важен, тире можно опустить)" />
|
||||||
<button v-on:click="addAction">Поехали</button>
|
<button v-on:click="addAction">Поехали</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
</style>
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user