fix bug#3909

This commit is contained in:
wwt 2025-03-24 11:34:13 +08:00
parent 0b542e2e63
commit 4a670201c6

View File

@ -317,11 +317,9 @@ const handleConfirm = async () => {
} else { } else {
} }
} }
// //
const confirmBtnStatus = computed(() => { const confirmBtnStatus = computed(() => {
let disabledT = false let disabledT = false
console.log(groupActiveIndex.value !== -1)
if ( if (
groupName.value === '' || groupName.value === '' ||
(groupActiveIndex.value && groupActiveIndex.value === -1) || (groupActiveIndex.value && groupActiveIndex.value === -1) ||
@ -329,9 +327,16 @@ const confirmBtnStatus = computed(() => {
) { ) {
return true return true
} }
//
let temp = []
allChooseMembers?.value?.forEach((ele) => {
if (ele.ID !== userInfo.value.ID) {
temp.push(ele)
}
})
switch (groupActiveIndex.value) { switch (groupActiveIndex.value) {
case 0: case 0:
if(allChooseMembers?.value?.length < 2) { if(temp?.length < 2) {
disabledT = true disabledT = true
} }
break break
@ -344,7 +349,7 @@ const confirmBtnStatus = computed(() => {
} }
break break
case 2: case 2:
if(allChooseMembers?.value?.length < 2) { if(temp?.length < 2) {
disabledT = true disabledT = true
} }
break break