wangfumin 2 月之前
父節點
當前提交
793cbea6b7
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/layout/left-pano.vue

+ 5 - 1
src/layout/left-pano.vue

@@ -11,7 +11,7 @@
     <div class="left-pano strengthen-right">
       <slot></slot>
     </div>
-    <floorTab />
+    <floorTab v-if="isShow" />
     <ModeTab />
   </div>
 </template>
@@ -21,7 +21,11 @@ import { custom } from "@/env";
 import ModeTab from "./model-list/mode-tab.vue";
 import floorTab from "./model-list/floor-tab.vue";
 import { useRoute } from 'vue-router';
+import { computed, withDefaults, defineProps } from "vue";
 const route = useRoute();
+const isShow = computed(() => {
+  return ['/show/summary', '/fuseEdit/path','/fuseEdit/animation'].includes(route.path);
+});
 console.log(route, 777777)
 withDefaults(defineProps<{ show?: boolean }>(), { show: false });
 </script>