修复已知问题

This commit is contained in:
bobobobo
2026-01-29 00:27:31 +08:00
parent 990f2df972
commit 41c1e5ba89
36 changed files with 1353 additions and 169 deletions

View File

@@ -30,11 +30,12 @@
import backSVG from '../../../assets/icon/back.svg'
import { useUI } from '../../../../utils/use-ui'
import { endUserService } from '../../../../api/my-index'
import { navigateBack, reLaunch } from '../../../../utils/router'
const { showDialog, showToast } = useUI()
const emits = defineEmits(['openGroupManagement'])
const props = defineProps(['isGroup', 'serviceID'])
const props = defineProps(['isGroup', 'serviceID', 'type'])
const currentConversation = ref<IConversationModel>()
const typingStatus = ref(false)
@@ -91,15 +92,19 @@
}
const back = async () => {
if (props.type === 'GROUP') {
reLaunch('/')
return
}
if (props.serviceID) {
const show = await showDialog('提示', '确定要退出当前会话吗?')
if (show) {
await endUserService(props.serviceID)
await showToast('结束服务成功')
uni.navigateBack()
navigateBack()
}
} else {
uni.navigateBack()
navigateBack()
}
}
</script>