瀏覽代碼

添加logo

FinalYu 2 年之前
父節點
當前提交
32b4686368
共有 2 個文件被更改,包括 25 次插入0 次删除
  1. 二進制
      chuanyi_client2/src/assets/images/cytxt.png
  2. 25 0
      chuanyi_client2/src/components/LeftMenu/index.vue

二進制
chuanyi_client2/src/assets/images/cytxt.png


+ 25 - 0
chuanyi_client2/src/components/LeftMenu/index.vue

@@ -1,5 +1,9 @@
 <template>
   <el-row>
+    <el-col class="cy-conn cy-logo" @click.native="goHome">
+      <el-image :src="require('@/assets/images/logo.png')" fit="contain" class="c-logo"></el-image>
+      <el-image :src="require('@/assets/images/cytxt.png')" fit="contain" class="c-logo-txt"></el-image>
+    </el-col>
     <el-col class="cy-conn" @click.native="createDatasourceEvent">
       <el-image :src="require('@/assets/images/datasource.png')" fit="contain"></el-image>
       <span>数据源配置</span>
@@ -249,6 +253,9 @@ export default {
         callback()
       }
     },
+    goHome() {
+      this.changeNavType(0)
+    },
     /** 添加数据源配置 */
     createDatasourceEvent() {
       this.changeNavType(0)
@@ -663,4 +670,22 @@ export default {
     }
   }
 }
+
+.cy-logo {
+  display: flex;
+  flex-direction: column;
+
+  .el-image {
+    display: flex;
+  }
+
+  .c-logo-txt img {
+    width: 50px;
+  }
+
+  .c-logo img {
+    width: 40px;
+    margin-bottom: 5px;
+  }
+}
 </style>