更新
This commit is contained in:
@@ -95,6 +95,7 @@ import { ref, onUnmounted, nextTick, computed } from 'vue'
|
||||
import { VideoCamera, CircleClose, Phone } from '@element-plus/icons-vue'
|
||||
import { getCallSignature, endCall } from '@/api/tcm'
|
||||
import feedback from '@/utils/feedback'
|
||||
import { formatTUICallUserError } from '@/utils/tuicall-error'
|
||||
import { TUICallKitAPI, TUICallKit, TUICallType, STATUS } from '@trtc/calls-uikit-vue'
|
||||
|
||||
interface CallInfo {
|
||||
@@ -646,7 +647,7 @@ const startCall = async () => {
|
||||
|
||||
} catch (error: any) {
|
||||
console.error('启动通话失败:', error)
|
||||
const errorMessage = error.message || '启动通话失败,请稍后重试'
|
||||
const errorMessage = formatTUICallUserError(error, '启动通话失败,请稍后重试')
|
||||
feedback.msgError(errorMessage)
|
||||
callRejected.value = true
|
||||
statusText.value = errorMessage
|
||||
|
||||
Reference in New Issue
Block a user