From eecec1aae1ae87cb1a9cf87a416e995760fd15d5 Mon Sep 17 00:00:00 2001 From: Azure <983547216@qq.com> Date: Tue, 23 Jun 2026 11:18:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E6=88=BF=E9=97=B4?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E7=82=B9=E5=87=BB=E8=A1=8C=E4=B8=BA=EF=BC=8C?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E9=BB=98=E8=AE=A4=E8=A7=82=E6=88=98=EF=BC=8C?= =?UTF-8?q?=E7=A9=BA=E6=A4=85=E5=AD=90=E5=85=A5=E5=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/baseLayouts/TableCard.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/baseLayouts/TableCard.vue b/src/components/baseLayouts/TableCard.vue index c46d0d2..b6ed638 100644 --- a/src/components/baseLayouts/TableCard.vue +++ b/src/components/baseLayouts/TableCard.vue @@ -80,7 +80,6 @@ const props = defineProps<{ }>() const emit = defineEmits<{ - (e: 'join', roomId: string): void (e: 'join-seat', roomId: string, seatIndex: number): void (e: 'spectate', roomId: string): void }>() @@ -143,13 +142,9 @@ const statusLabelClass = computed(() => { } }) -/** 点击卡片 → 加入或观战 */ +/** 点击卡片 → 观战(不直接加入) */ function handleClick() { - if (props.room.status === 'playing') { - emit('spectate', props.room.id) - } else { - emit('join', props.room.id) - } + emit('spectate', props.room.id) } /** 点击空椅子 → 指定座位加入 */