Compare commits

...

2 Commits

Author SHA1 Message Date
wwt
fe857f1e81 Merge branch 'wwt'
Some checks are pending
Check / lint (push) Waiting to run
Check / typecheck (push) Waiting to run
Check / build (build, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build, 18.x, windows-latest) (push) Waiting to run
Check / build (build:app, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:app, 18.x, windows-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Waiting to run
2025-03-24 11:34:59 +08:00
wwt
4a670201c6 fix bug#3909 2025-03-24 11:34:13 +08:00

View File

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