无需组局

This commit is contained in:
18631081161 2025-12-09 22:41:04 +08:00
parent a3e160ffe1
commit e713369839

View File

@ -97,7 +97,13 @@ const playerPositions = computed(() => {
const joinedCount = joinPerson.length
//
if (personCount === 2) {
if (personCount === 1) {
// 1
return {
positions: [null, joinPerson[0] || null, null, null],
joinPositions: [false, false, false, false]
}
} else if (personCount === 2) {
// 2
return {
positions: [null, joinPerson[0] || null, joinPerson[1] || null, null],
@ -169,7 +175,10 @@ const getPlayerAtPosition = (position) => {
const getJoinPlayerAtPosition = (index) => {
const personCount = props.item.personCount
if (personCount === 2) {
if (personCount === 1) {
// 12
return index === 2
} else if (personCount === 2) {
// 2
return [2, 3].includes(index)
} else if (personCount === 3) {