去除console
This commit is contained in:
parent
697b2521d5
commit
2034dbed21
|
|
@ -496,7 +496,6 @@ const Meeting: React.FC = () => {
|
||||||
await agora.init(true)
|
await agora.init(true)
|
||||||
agora.registerEventHandler({
|
agora.registerEventHandler({
|
||||||
onJoinChannelSuccess: async (info: any, _elapsed: any) => {
|
onJoinChannelSuccess: async (info: any, _elapsed: any) => {
|
||||||
console.log(info, '本地');
|
|
||||||
if (info.channelId === state.channelId) {
|
if (info.channelId === state.channelId) {
|
||||||
if (String(info.localUid).length !== 9) {
|
if (String(info.localUid).length !== 9) {
|
||||||
await getJoin(state.enableMicr, state.enableCamera)
|
await getJoin(state.enableMicr, state.enableCamera)
|
||||||
|
|
@ -513,7 +512,6 @@ const Meeting: React.FC = () => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onUserJoined: async (info: any, remoteUid: any, _elapsed: any) => {
|
onUserJoined: async (info: any, remoteUid: any, _elapsed: any) => {
|
||||||
console.log(info, remoteUid, '远端');
|
|
||||||
if (info.channelId === state.channelId) {
|
if (info.channelId === state.channelId) {
|
||||||
if (String(remoteUid).length === 9) {
|
if (String(remoteUid).length === 9) {
|
||||||
setIsShare(remoteUid)
|
setIsShare(remoteUid)
|
||||||
|
|
@ -529,7 +527,6 @@ const Meeting: React.FC = () => {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onUserOffline: async (info: any, remoteUid: any, _reason: any) => {
|
onUserOffline: async (info: any, remoteUid: any, _reason: any) => {
|
||||||
console.log(info, remoteUid, '离开');
|
|
||||||
if (info.channelId === state.channelId) {
|
if (info.channelId === state.channelId) {
|
||||||
if (String(remoteUid).length === 9) {
|
if (String(remoteUid).length === 9) {
|
||||||
setIsShare(null)
|
setIsShare(null)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue