diff --git a/src/utils/package/agora.ts b/src/utils/package/agora.ts
index 7819346..6f857ce 100644
--- a/src/utils/package/agora.ts
+++ b/src/utils/package/agora.ts
@@ -165,7 +165,7 @@ export const agora = {
},
// 本地加入
setupLocalVideo: async (item: any) => {
- if (item.view?.childNodes.length === 1) {
+ if (item.view?.childNodes.length === 1 || item.type) {
await rtcEngine.setupLocalVideo({
renderMode: agora.getRrenderMode(item.uid),
sourceType: item.sourceType,
@@ -323,8 +323,8 @@ export const agora = {
rtcEngine.muteRemoteVideoStream(uid, mute)
},
// 销毁视频渲染dom
- destroyRendererByConfig: async (uid: number) => {
- await rtcEngine.destroyRendererByConfig(VideoSourceType.VideoSourceRemote, option.channelId + 'a', uid);
+ destroyRendererByConfig: async (uid: number, channelId: string) => {
+ await rtcEngine.destroyRendererByConfig(VideoSourceType.VideoSourceRemote, channelId, uid);
},
// ai降噪
setAINSMode: async (enabled: boolean, mode: AudioAinsMode) => {
diff --git a/src/utils/styles/App.scss b/src/utils/styles/App.scss
index 3b5551f..1c1cf96 100644
--- a/src/utils/styles/App.scss
+++ b/src/utils/styles/App.scss
@@ -376,6 +376,7 @@ $pagination-hover-background-color: #5575F2;
.ant-message {
-webkit-app-region: no-drag;
}
+
// ant-spin-fullscreen
.ant-spin-fullscreen {
z-index: 10000;
@@ -383,4 +384,8 @@ $pagination-hover-background-color: #5575F2;
.ant-picker-dropdown {
-webkit-app-region: no-drag;
+}
+
+.ant-tabs {
+ -webkit-app-region: no-drag;
}
\ No newline at end of file