|
@@ -26,7 +26,7 @@
|
|
:style="{ 'background-image': `url(${loadingLogoFile})` }"
|
|
:style="{ 'background-image': `url(${loadingLogoFile})` }"
|
|
></div>
|
|
></div>
|
|
<div v-else>
|
|
<div v-else>
|
|
- <i class="iconfont icon-hengbiaoCN"></i>
|
|
|
|
|
|
+ <i class="iconfont" :class="lang == 'zh' ? 'icon-hengbiaoCN' : 'icon-hengbiaoEN'"></i>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -36,12 +36,14 @@
|
|
</transition>
|
|
</transition>
|
|
</template>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
- import { ref, computed, onMounted, watchEffect, nextTick } from 'vue';
|
|
|
|
|
|
+ import { ref, computed, onMounted, watchEffect, nextTick, unref } from 'vue';
|
|
import { useApp } from '/@/hooks/userApp';
|
|
import { useApp } from '/@/hooks/userApp';
|
|
import { useSceneStore } from '/@/store/modules/scene';
|
|
import { useSceneStore } from '/@/store/modules/scene';
|
|
import loadLOGO from '/@/assets/images/loading.jpg';
|
|
import loadLOGO from '/@/assets/images/loading.jpg';
|
|
-
|
|
|
|
|
|
+ import { useLocale } from '/@/locales/useLocale';
|
|
|
|
+ const { getLocale } = useLocale();
|
|
const sceneStore = useSceneStore();
|
|
const sceneStore = useSceneStore();
|
|
|
|
+ const lang = unref(getLocale);
|
|
// import { useStore } from "vuex";
|
|
// import { useStore } from "vuex";
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
@@ -63,7 +65,6 @@
|
|
const metadata = computed(() => sceneStore.metadata);
|
|
const metadata = computed(() => sceneStore.metadata);
|
|
// store.getters["scene/loadingLogoFile"]
|
|
// store.getters["scene/loadingLogoFile"]
|
|
const loadingLogoFile = computed(() => sceneStore.loadingLogoFile);
|
|
const loadingLogoFile = computed(() => sceneStore.loadingLogoFile);
|
|
- // console.log("loadingLogoFile", loadingLogoFile);
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
enter.value = true;
|
|
enter.value = true;
|