From 731d32992d51e945bbeb7402d1a9acd87ced9e9d Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期五, 08 九月 2023 17:25:49 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.150:10101/r/CanadaMes

---
 CanadaMes-ui/src/layout/index.vue |   30 +++++++++++++++++++-----------
 1 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/CanadaMes-ui/src/layout/index.vue b/CanadaMes-ui/src/layout/index.vue
index 8ae46e0..4e5d820 100644
--- a/CanadaMes-ui/src/layout/index.vue
+++ b/CanadaMes-ui/src/layout/index.vue
@@ -13,14 +13,14 @@
                       background-color="#222f3e" text-color="#fff" active-text-color="#ffd04b"
                       :collapse="isCollapse" :unique-opened="true"
                       :collapse-transition="false" :router="true">
-              <el-menu-item index="/" @click="goToHome">
+              <!-- <el-menu-item index="/" @click="goToHome">
                 <template slot="title">
-                  <!--鍥炬爣-->
+               
                   <i class="el-icon-menu"></i>
-                  <!--鏂囨湰-->
+                
                   <span>{{ $t('home') }}</span>
                 </template>
-              </el-menu-item>
+              </el-menu-item> -->
               <!--涓�绾ц彍鍗�-->
               <el-submenu :index="item.id.toString()" v-for="item in menuList" :key="item.id">
                 <!--涓�绾ц彍鍗曟ā鏉垮尯鍩�-->
@@ -31,6 +31,7 @@
                   <span>{{ item.name }}</span>
                 </template>
                 <!--浜岀骇鑿滃崟-->
+              
                 <el-menu-item :index="'/'+menu.router"
                               v-for="menu in item.menuLists" :key="menu.id"
                               @click="addTag(menu.router)">
@@ -53,16 +54,15 @@
         <el-menu :default-active="activePath1" class="el-menu-demo" mode="horizontal"
                  background-color="#576574" text-color="#fff" active-text-color="#ffd04b">
           <div class="header-left">
-            <el-button :icon="isCollapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'" @click="toggleCollapse" style="height:30px"></el-button>
+            <el-button :icon="isCollapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'" @click="toggleCollapse" style="height:30px;"></el-button>
           </div>
-          <div class="tagContainer">
-            <tag v-for="(tag, index) in tags" :key="index" :tag="tag" @removeTag="removeTag(index)" @switchTag="switchTag(index)"></tag>
-            <!-- <el-button icon="el-icon-circle-close" class="close-all-btn" @click="removeAllTags"></el-button> -->
-          </div>
+          <div class="tagContainer" style="display: flex;">
+  <tag v-for="(tag, index) in tags" :key="index" :tag="tag" @removeTag="removeTag(index)" @switchTag="switchTag(index)"></tag>
+</div>
           <template>
-            <el-submenu index="1" class="custom-submenu">
+            <el-submenu index="1" class="custom-submenu"  >
               <template slot="title">
-                <el-avatar src="../assets/emi.png" style="width:30px;height:30px;margin-top:2px;"></el-avatar>
+                <el-avatar src="../assets/emi.png"   style="width:20px;height:20px;margin-top:30px;background-color: white;"></el-avatar>
               </template>
               <el-menu-item index="1-1" @click="logout">{{ $t('exit') }}</el-menu-item>
               <el-menu-item index="1-2" @click="showChangePasswordDialog">{{ $t('changePassword') }}</el-menu-item>
@@ -149,6 +149,7 @@
     ...mapState('tags', ['tags'])
   },
   methods: {
+    
     logout: function () {
       removeToken()
       this.$router.push('/login')
@@ -168,6 +169,7 @@
     this.$store.commit('tags/addTag', tag);
   }
 },
+
 
     removeTag(index) {
       this.$store.commit('tags/removeTag', index); // 浠� Vuex Store 涓Щ闄ゆ爣绛�
@@ -235,11 +237,16 @@
 </script>
 
 <style scoped lang="less">
+
+.el-menu--horizontal > .el-submenu .el-submenu__title {
+  height: 45px !important;
+}
 .custom-submenu  {
  
  
  height: 90px   !important;
 }
+
 
 .header-container {
 
@@ -250,6 +257,7 @@
 
 .header-left {
  margin-right: auto;
+width:30px;
  
 }
 .el-aside {

--
Gitblit v1.8.0