细节完善

This commit is contained in:
kron
2026-02-09 18:16:48 +08:00
parent 4801833fa9
commit a3a9f7b351

View File

@@ -373,13 +373,20 @@ onBeforeUnmount(() => {
:removePlayer="removePlayer"
/>
<view>
<SButton :disabled="ready" :onClick="getReady">{{
allReady.value
? "即将进入对局..."
: owner.id === user.id && (room.members || []).length > 2
? "开始对局"
: "我准备好了"
}}</SButton>
<SButton
:disabled="
ready || (owner.id === user.id && (room.members || []).length < 3)
"
:onClick="getReady"
>
{{
allReady.value
? "即将进入对局..."
: owner.id === user.id
? "开始对局"
: "我准备好了"
}}
</SButton>
<text class="tips">所有人准备后自动开始游戏</text>
</view>
</view>