Skip to content

Commit

Permalink
Merge pull request #229 from zztazzt/main
Browse files Browse the repository at this point in the history
fix: 拼写错误
  • Loading branch information
JadenatZEGO authored Jan 8, 2025
2 parents 8de4ad2 + 09968cd commit 2a79b47
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ mkdir -p ./ZegoUIKitPrebuiltCall && cp -r node_modules/@zegocloud/zego-uikit-pre
<Step title="初始化带有呼叫邀请功能的 Call Kit。">
在您的首页或其他页面中,参考以下代码初始化 ZegoUIKitPrebuiltCall。

<Warning title="Warning">设置房间配置的 mode 参数为 ZegoCallScenario.CALL_INTIVATION 后才能发起呼叫和接受呼叫。</Warning>
<Warning title="Warning">设置房间配置的 mode 参数为 ZegoCallScenario.CALL_INVITATION 后才能发起呼叫和接受呼叫。</Warning>
```js YourInitPage.vue {10,14}
<script setup>
import { ZegoUIKitPrebuiltCall, ZegoCallScenario } from '@zegocloud/zego-uikit-prebuilt-call-mini-program';
Expand All @@ -68,7 +68,7 @@ const userID = "user1"; // userID,需用户自己定义,保证全局唯一
const userName = "user1_name"; // userName 用户名
const token = ""; // 您从服务端生成的 Token
const config = {
mode: ZegoCallScenario.CALL_INTIVATION, // 设置 mode 为 ZegoCallScenario.CALL_INTIVATION 后才能发起呼叫和接受呼叫
mode: ZegoCallScenario.CALL_INVITATION, // 设置 mode 为 ZegoCallScenario.CALL_INVITATION 后才能发起呼叫和接受呼叫
}; // 房间配置

onMounted(() => {
Expand All @@ -94,16 +94,16 @@ onMounted(() => {
</view>
</template>
<script setup>
import ZegoSendCallInvitationButton from './ZegoUIKitPrebuiltCall/src/components/ZegoSendCallInvitationButton.vue';
import ZegoSendCallInvitationButton from '../ZegoUIKitPrebuiltCall/src/components/ZegoSendCallInvitationButton.vue';
import { ref } from 'vue';
// 您要呼叫的用户列表
const invitees = ref([{
userID: 'user_invitee',
userName: 'user_invitee',
}]);
const text = ret("视频通话");
const text = ref("视频通话");
const customData = ref("您需要传递给被叫者的其他参数");
const sendCallback = (code: number, message: string, errorInvitees: string[]) => {
const sendCallback = (code, message, errorInvitees) => {
// 点击发起呼叫邀请的回调
}
</script>
Expand Down

0 comments on commit 2a79b47

Please sign in to comment.