细节完善
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user