修复已知问题

This commit is contained in:
bobobobo
2026-02-06 01:12:04 +08:00
parent 2d503bab83
commit 3389a8eaa9
15 changed files with 2516 additions and 1824 deletions

View File

@@ -84,6 +84,9 @@
</div>
</template>
<script lang="ts" setup>
// #ifdef APP-PLUS
import * as CallLib from '@/uni_modules/RongCloud-CallWrapper/lib/index'
// #endif
import {
ref,
onMounted,
@@ -121,6 +124,7 @@
// @Start uniapp use Chat only
import { onLoad, onUnload } from '@dcloudio/uni-app'
import { initChat, logout } from './entry-chat-only.ts'
import { navigateTo } from '../../../utils/router.js'
// 返回状态
const backStatusName = ref('')
@@ -357,6 +361,23 @@
)
currentConversationID.value = conversationID
}
// #ifdef APP-PLUS
CallLib.init({})
CallLib.onCallReceived(res => {
console.log(
'Engine:OnCallReceived=>' + '监听通话呼入, 目标id=>',
res.data
)
if (res.data.targetId) {
navigateTo('/pages/room/incom', {
type: res.data.extra,
userID: res.data.targetId
})
}
})
// #endif
</script>
<style scoped lang="scss" src="./style/index.scss"></style>