From ff6fd31ba5a4b6a6e74096786ff6d61293d15c73 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期一, 04 十二月 2023 09:08:57 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes

---
 CanadaMes-ui/src/layout/index.vue |   50 +++++++++++++++++++++++++-------------------------
 1 files changed, 25 insertions(+), 25 deletions(-)

diff --git a/CanadaMes-ui/src/layout/index.vue b/CanadaMes-ui/src/layout/index.vue
index c235d51..fbf513e 100644
--- a/CanadaMes-ui/src/layout/index.vue
+++ b/CanadaMes-ui/src/layout/index.vue
@@ -34,7 +34,7 @@
               
                 <el-menu-item :index="'/'+menu.router"
                               v-for="menu in item.menuLists" :key="menu.id"
-                              @click="addTag(menu.router)">
+                             >
                   <template slot="title">
                     <!--鍥炬爣-->
                     <i :class="menu.icon"></i>
@@ -56,9 +56,9 @@
           <div class="header-left">
             <el-button :icon="isCollapse ? 'el-icon-s-unfold' : 'el-icon-s-fold'" @click="toggleCollapse" style="height:30px;"></el-button>
           </div>
-          <div class="tagContainer" style="display: flex;">
+          <!-- <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>
+</div> -->
           <template>
             <el-submenu index="1" class="custom-submenu"  >
               <template slot="title">
@@ -103,13 +103,13 @@
 import { changePassword } from '../api/user'
 import { removeToken } from "../utils/auth";
 import LanguageMixin from '../lang/LanguageMixin'
-import { mapState, mapMutations } from 'vuex';
-import Tag from '../layout/tag.vue';
-import store from '../store';
+// import { mapState, mapMutations } from 'vuex';
+// import Tag from '../layout/tag.vue';
+// import store from '../store';
 
 export default {
   name: "Layout",
-  store,
+  // store,
   mixins: [LanguageMixin],
   data() {
     return {
@@ -130,9 +130,9 @@
       }
     }
   },
-  components: {
-    Tag
-  },
+  // components: {
+  //   Tag
+  // },
   created() {
     selectList(this.menuListForm).then(res => {
       this.menuList = res.data
@@ -142,11 +142,11 @@
         this.replaceChineseWithEnglish(this.menuList);
       }
       // 璁板綍涓婁竴娆℃縺娲荤殑鑿滃崟
-      this.activePath = window.sessionStorage.getItem('activePath')
+      // this.activePath = window.sessionStorage.getItem('activePath')
     });
   },
   computed: {
-    ...mapState('tags', ['tags'])
+    // ...mapState('tags', ['tags'])
   },
   methods: {
     
@@ -158,22 +158,22 @@
       this.$router.push('/home');
     },
   
-    ...mapMutations('tags', ['addTag', 'removeTag', 'switchTag']),
-    addTag(router) {
-  let submenuItem;
-  const menuItem = this.menuList.find(item => item.menuLists.some(menu => menu.router === router));
-  if (menuItem) {
-    submenuItem = menuItem.menuLists.find(menu => menu.router === router);
-  }
-  if (submenuItem) {
-    const tag = submenuItem.router;
-    this.$store.commit('tags/addTag', tag);
-  }
+    // ...mapMutations('tags', ['addTag', 'removeTag', 'switchTag']),
+    addTag() {
+  // let submenuItem;
+  // const menuItem = this.menuList.find(item => item.menuLists.some(menu => menu.router === router));
+  // if (menuItem) {
+  //   submenuItem = menuItem.menuLists.find(menu => menu.router === router);
+  // }
+  // if (submenuItem) {
+  //   const tag = submenuItem.router;
+  //   this.$store.commit('tags/addTag', tag);
+  // }
 },
 
 
-    removeTag(index) {
-      this.$store.commit('tags/removeTag', index); // 浠� Vuex Store 涓Щ闄ゆ爣绛�
+    removeTag() {
+      // this.$store.commit('tags/removeTag', index); // 浠� Vuex Store 涓Щ闄ゆ爣绛�
     },
     showChangePasswordDialog() {
       this.dialogVisible = true;

--
Gitblit v1.8.0