修复已知问题
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user