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