|
|
@@ -338,10 +338,9 @@
|
|
|
await initialRoom();
|
|
|
const { room, currentSceneIndex, firstNum } = useRoom();
|
|
|
console.log('room', room);
|
|
|
- // if (unref(room)?.takeLookLock === 1) {
|
|
|
- // showPasswordDialog.value = true;
|
|
|
- // return;
|
|
|
- // }
|
|
|
+ if (unref(room)?.roomStatus == 2) {
|
|
|
+ window.parent && window.parent.postMessage({ type: 'hostStatus' }, '*');
|
|
|
+ }
|
|
|
if (unref(room)?.takeLookLock === 1) {
|
|
|
if (unref(currentSceneIndex) > 0) {
|
|
|
const hasInput = localStorage.getItem(`${rtcStore.roomId}-${unref(firstNum)}`);
|
|
|
@@ -461,6 +460,9 @@
|
|
|
} else {
|
|
|
closeSocket();
|
|
|
}
|
|
|
+ if (browser.getURLParam('role') == 'leader') {
|
|
|
+ window.parent && window.parent.postMessage({ type: 'exit' }, '*');
|
|
|
+ }
|
|
|
if (authCheckInterval) clearInterval(authCheckInterval);
|
|
|
rtcStore.showBaseDialog(
|
|
|
{
|