|
@@ -25,7 +25,8 @@
|
|
|
import { useI18n } from '/@/hooks/useI18n';
|
|
|
import BaseDialog from '/@/components/chatRoom/dialog/base.vue';
|
|
|
import PasswordDialog from '/@/components/chatRoom/dialog/password.vue';
|
|
|
- import { useRoom } from './hooks/useRoom';
|
|
|
+ import { useRoom, roomId, currentSceneIndex } from './hooks/useRoom';
|
|
|
+
|
|
|
const { createTourPlayer } = useTourPlayer();
|
|
|
const showDebug = ref(Number(import.meta.env.VITE_SHOW_DEBUGPANEL) === 1);
|
|
|
const { t } = useI18n();
|
|
@@ -282,10 +283,21 @@
|
|
|
};
|
|
|
watchEffect(() => {
|
|
|
if (unref(isTourMode)) {
|
|
|
- const { room } = useRoom();
|
|
|
+ const { room, currentSceneIndex, firstNum } = useRoom();
|
|
|
console.log('room', room);
|
|
|
if (unref(room)?.takeLookLock === 1) {
|
|
|
- showPasswordDialog.value = true;
|
|
|
+ if (unref(currentSceneIndex) > 0) {
|
|
|
+ const hasInput = localStorage.getItem(`${roomId}-${unref(firstNum)}`);
|
|
|
+ console.log('密码::', hasInput);
|
|
|
+ if (Number(hasInput) === 1) {
|
|
|
+ showPasswordDialog.value = false;
|
|
|
+ } else {
|
|
|
+ showPasswordDialog.value = true;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ showPasswordDialog.value = true;
|
|
|
+ }
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -299,9 +311,10 @@
|
|
|
{{ maxNumber }}
|
|
|
</span> -->
|
|
|
<span>
|
|
|
- {{ t('base.debuginfo') }}:公告,测试1.1.0-0330-01,角色:{{ rtcStore.role }} rId:{{
|
|
|
+ {{ t('base.debuginfo') }}:公告,测试1.1.0-0412-05,角色:{{ rtcStore.role }} rId:{{
|
|
|
rtcStore.roomId || browser.getURLParam('roomId')
|
|
|
}}
|
|
|
+ sceneIndex:{{ currentSceneIndex }}
|
|
|
</span>
|
|
|
<span class="close" @click.stop="showDebug = false">X</span>
|
|
|
</div>
|