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