ysy 1 год назад
Родитель
Сommit
5eef5de0e9
2 измененных файлов с 10 добавлено и 25 удалено
  1. 9 24
      src/layout/index.vue
  2. 1 1
      vue.config.js

+ 9 - 24
src/layout/index.vue

@@ -48,12 +48,11 @@
     @set-home-components="setHomeComponents"
     @tab-context-menu="onTabContextMenu"
   >
-
     <!-- 路由出口 -->
     <router-layout />
     <!-- logo 图标 -->
     <template v-slot:logo>
-      <el-image  v-if="logoImg" fit="contain" :src="logoImg" alt="logo" />
+      <el-image v-if="logoImg" fit="contain" :src="logoImg" alt="logo" />
     </template>
 
     <!-- 顶栏右侧区域 -->
@@ -264,15 +263,14 @@
 </script>
 
 <style lang="scss">
-  .ele-admin-layout {
-    .ele-admin-logo {
-      font-size: 18px !important;
-
-      img {
-        height: 32px !important;
-        width: auto;
-        margin-right: 6px;
-      }
+  .ele-admin-logo {
+    font-size: 18px !important;
+    justify-content: flex-start !important;
+    img {
+      height: 35px !important;
+      max-width: 86px;
+      width: auto;
+      margin-right: 6px;
     }
   }
 
@@ -365,17 +363,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 {
-    //font-size: 0 !important;
-    background-size: cover !important;
-    background-repeat: no-repeat !important;
-    background-position: center center !important;
-  }
 </style>

+ 1 - 1
vue.config.js

@@ -22,7 +22,7 @@ module.exports = {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
         // target: 'http://124.71.68.31:50001',
-        target: 'http://192.168.1.147:18086',
+        target: 'http://192.168.1.125:18086',
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {