设计页下载中心隐藏

This commit is contained in:
Zhx
2022-11-11 16:23:44 +08:00
parent e842e81f97
commit 92177a7d14

View File

@@ -116,7 +116,7 @@
</template> </template>
<script setup> <script setup>
import { ref, computed, onMounted, createVNode } from "vue"; import { ref, computed, onMounted, createVNode,nextTick } from "vue";
import { useRouter, useRoute } from "vue-router"; import { useRouter, useRoute } from "vue-router";
import useEmitter from "@/composables/useEmitter"; import useEmitter from "@/composables/useEmitter";
import { publishSurvey, getSurveyInfo } from "@/api/publish"; import { publishSurvey, getSurveyInfo } from "@/api/publish";
@@ -220,6 +220,10 @@ const showLoading = computed(() => {
return false; return false;
}); });
const toPage = (path, title) => { const toPage = (path, title) => {
showxiazai.value=null
if(path!='/survey/planet'){
showxiazai.value=true
}
router.push({ router.push({
path, path,
query: route.query, query: route.query,
@@ -344,10 +348,10 @@ const toDownload = () => {
// query: { path: route.path, sn }, // query: { path: route.path, sn },
// }); // });
}; };
const showxiazai=ref(null) const showxiazai=ref(true)
onMounted(() => { onMounted(() => {
if(route.path!='/survey/planet/design'){ if(route.path=='/survey/planet/design'){
showxiazai.value=true showxiazai.value=false
} }
fetchInfo(); fetchInfo();
}); });