wangzhihui 4 роки тому
батько
коміт
c9b1ad8876
3 змінених файлів з 12 додано та 3 видалено
  1. 0 1
      index.html
  2. 11 1
      src/App.vue
  3. 1 1
      src/components/Aside.vue

+ 0 - 1
index.html

@@ -9,7 +9,6 @@
       * {
         margin: 0;
         padding: 0;
-        box-sizing: border-box;
       }
       html,
       body {

+ 11 - 1
src/App.vue

@@ -4,6 +4,16 @@
     <div class="main">
       <div class="aside"><AsideVue></AsideVue></div>
       <div class="section">
+        <div
+          style="
+            height: 52px;
+            width: 100%;
+            border: 1px solid red;
+            box-sizing: border-box;
+          "
+        >
+          {{ this.$store.state.titleFirst }}
+        </div>
         <router-view></router-view>
       </div>
     </div>
@@ -50,6 +60,6 @@ export default {
 
 .section {
   width: 100%;
-  overflow-y: scroll;
+  overflow: auto;
 }
 </style>

+ 1 - 1
src/components/Aside.vue

@@ -1,6 +1,6 @@
 <template>
   <el-menu
-    style="width: 210px; height: 100%"
+    style="width: 220px; height: 100%"
     default-active="2"
     class="el-menu-vertical-demo"
     @open="handleOpen"