|
@@ -190,6 +190,7 @@
|
|
import dayjs from 'dayjs';
|
|
import dayjs from 'dayjs';
|
|
import duration from 'dayjs/plugin/duration';
|
|
import duration from 'dayjs/plugin/duration';
|
|
import { useMiniApp } from '/@/hooks/useMiniApp';
|
|
import { useMiniApp } from '/@/hooks/useMiniApp';
|
|
|
|
+ import { useSceneStore } from '/@/store/modules/scene';
|
|
const { closeSocket } = useSocket();
|
|
const { closeSocket } = useSocket();
|
|
dayjs.extend(duration);
|
|
dayjs.extend(duration);
|
|
// hook
|
|
// hook
|
|
@@ -240,6 +241,8 @@
|
|
let roomCount: NodeJS.Timeout;
|
|
let roomCount: NodeJS.Timeout;
|
|
const { t } = useI18n();
|
|
const { t } = useI18n();
|
|
const { sceneList } = useRoom();
|
|
const { sceneList } = useRoom();
|
|
|
|
+ const sceneStore = useSceneStore();
|
|
|
|
+ const currentTag = computed(() => sceneStore.currentTag);
|
|
|
|
|
|
watchEffect(() => {
|
|
watchEffect(() => {
|
|
console.log('sceneList', sceneList);
|
|
console.log('sceneList', sceneList);
|
|
@@ -378,7 +381,7 @@
|
|
);
|
|
);
|
|
//初始化同屏等
|
|
//初始化同屏等
|
|
watch(
|
|
watch(
|
|
- () => [isJoined, isNativeLeader],
|
|
|
|
|
|
+ () => [isJoined, isNativeLeader, currentTag],
|
|
async (val) => {
|
|
async (val) => {
|
|
try {
|
|
try {
|
|
// console.log('初始化同屏', unref(val[0]), unref(val[1]));
|
|
// console.log('初始化同屏', unref(val[0]), unref(val[1]));
|
|
@@ -406,6 +409,8 @@
|
|
} else {
|
|
} else {
|
|
app.Scene.on('loaded', () => sceneInit(app, val));
|
|
app.Scene.on('loaded', () => sceneInit(app, val));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //同步tag
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log('error', error);
|
|
console.log('error', error);
|
|
}
|
|
}
|
|
@@ -633,6 +638,7 @@
|
|
initSocketEvent(socket);
|
|
initSocketEvent(socket);
|
|
const { createRTCSocket } = useRtcSdk();
|
|
const { createRTCSocket } = useRtcSdk();
|
|
await createRTCSocket();
|
|
await createRTCSocket();
|
|
|
|
+ appStore.setPasswordConfirm(true);
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|