Compare commits
2 Commits
a06f0b2489
...
fe857f1e81
Author | SHA1 | Date | |
---|---|---|---|
|
fe857f1e81 | ||
|
4a670201c6 |
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user