|
@@ -1,5 +1,5 @@
|
|
|
<script setup lang="ts">
|
|
|
- import { onMounted, ref, computed, unref, watchEffect } from 'vue';
|
|
|
+ import { onMounted, ref, computed, unref, watchEffect, onUnmounted } from 'vue';
|
|
|
import { createApp } from '/@/hooks/userApp';
|
|
|
// import tagView from '/@/components/custom/tagView.vue';
|
|
|
// import tag from '/@/components/custom/tag.vue';
|
|
@@ -26,7 +26,7 @@
|
|
|
import BaseDialog from '/@/components/chatRoom/dialog/base.vue';
|
|
|
|
|
|
const { createTourPlayer } = useTourPlayer();
|
|
|
- const showDebug = ref(true);
|
|
|
+ const showDebug = ref(Number(import.meta.env.VITE_SHOW_DEBUGPANEL) === 1);
|
|
|
const { t } = useI18n();
|
|
|
|
|
|
const { changeLocale } = useLocale();
|
|
@@ -39,6 +39,7 @@
|
|
|
changeLocale('zh');
|
|
|
}
|
|
|
const maxNumber = import.meta.env.VITE_ROOM_MEMBER || 10;
|
|
|
+ const test_version = computed(() => import.meta.env.VITE_TEST_VERSION || '');
|
|
|
const sceneStore = useSceneStore();
|
|
|
const appStore = useAppStore();
|
|
|
const rtcStore = useRtcStore();
|
|
@@ -255,6 +256,9 @@
|
|
|
// SDK初始化结束
|
|
|
});
|
|
|
// SDK global Event end
|
|
|
+ onUnmounted(() => {
|
|
|
+ appStore.unLoad();
|
|
|
+ });
|
|
|
|
|
|
// method
|
|
|
const changeMode = (name: string) => {
|
|
@@ -270,7 +274,7 @@
|
|
|
<template>
|
|
|
<div class="debug flex justify-between px-1" v-if="showDebug">
|
|
|
<span>
|
|
|
- {{ t('base.debuginfo') }}:公告,当前测试最新:2022120702,当前满员条件:
|
|
|
+ {{ t('base.debuginfo') }}:公告,当前测试最新: {{ test_version }}, 当前满员条件:
|
|
|
{{ maxNumber }}
|
|
|
</span>
|
|
|
<span class="close" @click.stop="showDebug = false">X</span>
|