generated from VLADIMIR/template_frontend
update api
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { getAuthClient } from '@/api/auth_client';
|
||||
import type { Place, Story } from '@/api/generated/crabs/evening_detective_server';
|
||||
import type { Game, Place, Story } from '@/api/generated/crabs/evening_detective_server';
|
||||
import HeaderMenu from '@/components/HeaderMenu.vue'
|
||||
import { NCard, NFlex, NInput, NModal, NSpace, NText, NUpload, NUploadDragger, NAlert, NTag, NButton } from 'naive-ui'
|
||||
import { useMessage } from 'naive-ui';
|
||||
@@ -26,6 +26,16 @@ const story = ref<AdvancedStory>({
|
||||
places: []
|
||||
})
|
||||
|
||||
const game = ref<Game | undefined>({
|
||||
id: undefined,
|
||||
name: undefined,
|
||||
description: undefined,
|
||||
startAt: undefined,
|
||||
status: undefined,
|
||||
scenario: undefined,
|
||||
teams: undefined
|
||||
})
|
||||
|
||||
const code = ref('')
|
||||
|
||||
const isAtBottom = () => {
|
||||
@@ -47,6 +57,8 @@ async function getStory() {
|
||||
return
|
||||
}
|
||||
|
||||
game.value = res.game
|
||||
|
||||
const wasAtBottom = isAtBottom();
|
||||
|
||||
if (wasAtBottom) {
|
||||
|
||||
Reference in New Issue
Block a user