|
@@ -1,8 +1,11 @@
|
|
|
<template>
|
|
|
<LoadingLogo v-if="workEnable" />
|
|
|
<template v-if="workEnable">
|
|
|
- <Opening :coverData="coverInfo" v-if="coverInfo.isShowCover" />
|
|
|
- <Password />
|
|
|
+ <Opening
|
|
|
+ :coverData="coverInfo"
|
|
|
+ v-if="coverInfo.isShowCover && !hasPasswordLock"
|
|
|
+ />
|
|
|
+ <Password @pass="handlePass" />
|
|
|
<Share />
|
|
|
<div class="ui-view-layout" :class="{ show: show }">
|
|
|
<Pano />
|
|
@@ -27,7 +30,7 @@ import Opening from "@/components/assembly/OpeningMobile";
|
|
|
import LoadingLogo from "@/components/assembly/Loading";
|
|
|
import { createApp } from "@/app";
|
|
|
|
|
|
-import { ref, onMounted, computed, unref,watch, nextTick } from "vue";
|
|
|
+import { ref, onMounted, computed, unref, watch, nextTick } from "vue";
|
|
|
import { getPanoInfo, checkWork } from "@/apis";
|
|
|
import { useStore } from "vuex";
|
|
|
import config from "@/utils/config";
|
|
@@ -50,6 +53,7 @@ const store = useStore();
|
|
|
const show = ref(false);
|
|
|
const workEnable = ref(true);
|
|
|
const lang = getLocale();
|
|
|
+const hasPasswordLock = ref(false);
|
|
|
|
|
|
const currentScene = computed(() => store.getters["scene/currentScene"]);
|
|
|
const currentCatalogRoot = computed(
|
|
@@ -81,6 +85,9 @@ onMounted(async () => {
|
|
|
"scene/setPassword",
|
|
|
data.password === "" ? false : data.password
|
|
|
);
|
|
|
+ if (data.password.length > 0) {
|
|
|
+ hasPasswordLock.value = true;
|
|
|
+ }
|
|
|
store.commit("scene/setMetaData", data);
|
|
|
document.title = data.name || t("common.no_title");
|
|
|
|
|
@@ -221,6 +228,9 @@ onMounted(async () => {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
+const handlePass = () => {
|
|
|
+ hasPasswordLock.value = false;
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|