QAQ
This commit is contained in:
@@ -165,7 +165,7 @@
|
||||
import { uploadSingleFile } from '../../../../utils/uploadFile'
|
||||
import { validateGroupNumber } from '../../../../utils/validate'
|
||||
import { useUI } from '../../../../utils/use-ui'
|
||||
import { getRandomGroup } from '../../../../api'
|
||||
import { getRandomGroup } from '../../../../api'
|
||||
|
||||
const { showToast } = useUI()
|
||||
const TUIGroupServer = Server.getInstance()
|
||||
@@ -243,9 +243,7 @@ import { getRandomGroup } from '../../../../api'
|
||||
})
|
||||
|
||||
const submitDisabledStatus = computed(() => {
|
||||
return (
|
||||
groupInfo.profile.name === ''&& !groupInfo.isEdit
|
||||
)
|
||||
return groupInfo.profile.name === '' && !groupInfo.isEdit
|
||||
})
|
||||
|
||||
const selected = (type: any) => {
|
||||
@@ -306,24 +304,24 @@ import { getRandomGroup } from '../../../../api'
|
||||
// return showToast(isGroupID.message)
|
||||
// }
|
||||
|
||||
const id = await getRandomGroup()
|
||||
|
||||
const res = await TUIGroupService.createGroup({
|
||||
...options,
|
||||
groupID: id.data,
|
||||
avatar: groupAvatar.value
|
||||
})
|
||||
const { type } = res.data.group
|
||||
if (type === TUIChatEngine.TYPES.GRP_AVCHATROOM) {
|
||||
await TUIGroupService.joinGroup({
|
||||
groupID: res.data.group.groupID,
|
||||
applyMessage: ''
|
||||
getRandomGroup().then(async (id: any) => {
|
||||
const res = await TUIGroupService.createGroup({
|
||||
...options,
|
||||
groupID: id.data,
|
||||
avatar: groupAvatar.value
|
||||
})
|
||||
const { type } = res.data.group
|
||||
if (type === TUIChatEngine.TYPES.GRP_AVCHATROOM) {
|
||||
await TUIGroupService.joinGroup({
|
||||
groupID: res.data.group.groupID,
|
||||
applyMessage: ''
|
||||
})
|
||||
}
|
||||
handleCompleteCreate(res.data.group)
|
||||
Toast({
|
||||
message: TUITranslateService.t('TUIGroup.群组创建成功'),
|
||||
type: TOAST_TYPE.SUCCESS
|
||||
})
|
||||
}
|
||||
handleCompleteCreate(res.data.group)
|
||||
Toast({
|
||||
message: TUITranslateService.t('TUIGroup.群组创建成功'),
|
||||
type: TOAST_TYPE.SUCCESS
|
||||
})
|
||||
} catch (err: any) {
|
||||
if (err.code === 10025) {
|
||||
|
||||
Reference in New Issue
Block a user