This commit is contained in:
2026-08-05 23:10:48 +07:00
parent ec6a5dc709
commit 39d6ced46d
13 changed files with 141 additions and 136 deletions
+5 -4
View File
@@ -1,11 +1,12 @@
<script setup lang="ts">
import { getAuthClient } from '@/api/auth_client';
import type { Game } from '@/api/generated/crabs/evening_detective_server';
import HeaderMenu from '@/components/HeaderMenu.vue'
import { useMessage } from 'naive-ui';
import { ref } from 'vue';
import { useRouter } from 'vue-router';
import { getAuthClient } from '@/api/auth_client';
import type { Game } from '@/api/generated/crabs/evening_detective_server';
import HeaderMenu from '@/components/HeaderMenu.vue'
const client = getAuthClient()
const message = useMessage()
const router = useRouter()
@@ -31,7 +32,7 @@ async function toGame(id: number) {
<template>
<div class="center-block-custom">
<div class="width1200">
<div v-for="game in games" class="game-block" @click="toGame(game.id!)">
<div v-for="game in games" :key="game.id" class="game-block" @click="toGame(game.id!)">
<div class="game-title">
{{ game.name }}
</div>