Compare commits
No commits in common. "fe857f1e81c509e242fb6d4fa5fbb240fcef9ed8" and "a06f0b248968d7c26e2a952f071c451b4dd78916" have entirely different histories.
fe857f1e81
...
a06f0b2489
@ -317,9 +317,11 @@ const handleConfirm = async () => {
|
||||
} else {
|
||||
}
|
||||
}
|
||||
|
||||
//发起群聊按钮可点击状态
|
||||
const confirmBtnStatus = computed(() => {
|
||||
let disabledT = false
|
||||
console.log(groupActiveIndex.value !== -1)
|
||||
if (
|
||||
groupName.value === '' ||
|
||||
(groupActiveIndex.value && groupActiveIndex.value === -1) ||
|
||||
@ -327,16 +329,9 @@ 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(temp?.length < 2) {
|
||||
if(allChooseMembers?.value?.length < 2) {
|
||||
disabledT = true
|
||||
}
|
||||
break
|
||||
@ -349,7 +344,7 @@ const confirmBtnStatus = computed(() => {
|
||||
}
|
||||
break
|
||||
case 2:
|
||||
if(temp?.length < 2) {
|
||||
if(allChooseMembers?.value?.length < 2) {
|
||||
disabledT = true
|
||||
}
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user