Browse Source

fix 头部logo

dusenyao 3 years ago
parent
commit
088375ac8f
1 changed files with 8 additions and 6 deletions
  1. 8 6
      src/layouts/components/LayoutHeader.vue

+ 8 - 6
src/layouts/components/LayoutHeader.vue

@@ -2,7 +2,7 @@
   <!-- 顶部登录导航 -->
   <div class="LoginNav">
     <div class="logo">
-      <span class="logo-img">
+      <span class="logo-img" @click="handleSelect">
         <el-image :src="$store.state.app.config.logo_image_url" />
       </span>
       <ul class="logo-projectlist">
@@ -103,11 +103,8 @@ export default {
   },
   methods: {
     // 切换导航
-    handleSelect(key) {
-      this.activeIndex = key;
-      if (this.activeIndex === '1') {
-        window.location.href = '/';
-      }
+    handleSelect() {
+      window.location.href = '/';
     },
     // 改变下拉框导航索引
     changeLoginNavIndex(key) {
@@ -193,6 +190,11 @@ export default {
 
     &-img {
       min-width: 242px;
+
+      .el-image {
+        height: 48px;
+        cursor: pointer;
+      }
     }
 
     &-projectlist {