|
@@ -8,6 +8,7 @@ import { useI18n } from '/@/hooks/useI18n';
|
|
|
import { useRoom } from '/@/hooks/useRoom';
|
|
|
import { useSocket } from '/@/hooks/userSocket';
|
|
|
import { UserInfoType, useRtcStore } from '/@/store/modules/rtc';
|
|
|
+import { useAppStore } from '/@/store/modules/app';
|
|
|
const { enterRoom } = useRoom();
|
|
|
|
|
|
// 自已join的方法
|
|
@@ -79,11 +80,16 @@ export function handleJoin(data: any) {
|
|
|
data: unref(currentScene),
|
|
|
});
|
|
|
console.log('进入,主持人禁音-1');
|
|
|
- // socket.emit('action', {
|
|
|
- // type: 'users-muted',
|
|
|
- // muted: true,
|
|
|
- // userId: user.UserId,
|
|
|
- // });
|
|
|
+ const appStore = useAppStore();
|
|
|
+ console.log('检查是否输入过密码', appStore.isPassWordConfirm);
|
|
|
+ if (appStore.isPassWordConfirm) {
|
|
|
+ socket.emit('action', {
|
|
|
+ type: 'confirm-password',
|
|
|
+ data: {
|
|
|
+ userId: rtcStore.userId,
|
|
|
+ },
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}, 1500);
|
|
|
}
|