Ver código fonte

feat: save temp

gemercheung 10 meses atrás
pai
commit
cfc20f8b43
1 arquivos alterados com 13 adições e 3 exclusões
  1. 13 3
      src/view/layout/nav.vue

+ 13 - 3
src/view/layout/nav.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="main-layout">
+  <div class="main-layout" :class="{ [routeName]: true }">
     <div class="header" :class="{ [name]: true }">
       <span class="title-span">
         <el-button
@@ -131,6 +131,18 @@ const showBack = computed(() => {
   display: flex;
   flex-direction: column;
   height: 100%;
+  &.scene,
+  &.relics,
+  &.device,
+  &.organization,
+  &.users {
+    .content {
+      .view {
+        margin-left: 8px;
+        margin-top: 8px;
+      }
+    }
+  }
 }
 
 .header {
@@ -205,8 +217,6 @@ const showBack = computed(() => {
 
   .view {
     flex: 1;
-    margin-left: 8px;
-    margin-top: 8px;
     overflow: hidden;
     background-color: var(--bgColor);
     flex-direction: column;