ysy před 1 rokem
rodič
revize
eeeba9c162
1 změnil soubory, kde provedl 11 přidání a 23 odebrání
  1. 11 23
      src/layout/index.vue

+ 11 - 23
src/layout/index.vue

@@ -53,7 +53,7 @@
     <router-layout />
     <!-- logo 图标 -->
     <template v-slot:logo>
-      <img src="@/assets/logo.png" alt="logo" />
+      <el-image fit="contain" src="@/assets/logo.png" alt="logo" />
     </template>
     <template v-slot:right>
       <header-tools :fullscreen="fullscreen" @fullscreen="onFullscreen" />
@@ -118,7 +118,7 @@
     components: {
       RouterLayout,
       HeaderTools,
-      PageFooter
+   
     },
     data() {
       return {
@@ -241,13 +241,15 @@
 </script>
 
 <style lang="scss">
-  .ele-admin-layout {
-    .ele-admin-logo {
-      font-size: 18px !important;
-      img {
-        width: 50px !important;
-        height: auto !important;
-      }
+  .ele-admin-logo {
+    font-size: 18px !important;
+    justify-content: flex-start !important;
+    align-items: center !important;
+    img {
+      height: 35px !important;
+      max-width: 86px;
+      width: auto;
+      margin-right: 6px;
     }
   }
   // 侧栏菜单徽章样式,定位在右侧垂直居中并调小尺寸
@@ -339,18 +341,4 @@
       }
     }
   }
-
-  .ele-admin-layout .ele-admin-logo img  {
-    height: auto !important;
-    width: 80px !important;
-    margin-right: 5px;
-    max-height: 35px;
-  }
-
-  // .ele-admin-layout .ele-admin-logo {
-  //   background-image: url('@/assets/logo.png') !important;
-  //   background-size: cover !important;
-  //   background-repeat: no-repeat !important;
-  //   background-position: center center !important;
-  // }
 </style>