设计页下载中心隐藏

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