From 4e598bff548c0e4a89f30e1523bdfb8b59d97741 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 30 一月 2026 09:59:05 +0800
Subject: [PATCH] tijiao

---
 admin/src/store/index.js |   23 +++++------------------
 1 files changed, 5 insertions(+), 18 deletions(-)

diff --git a/admin/src/store/index.js b/admin/src/store/index.js
index f2fb2f1..f76eee9 100644
--- a/admin/src/store/index.js
+++ b/admin/src/store/index.js
@@ -1,13 +1,11 @@
 import Vue from 'vue'
 import Vuex from 'vuex'
-import router from '../router'
 Vue.use(Vuex)
 
 const state = {
   // 鐧诲綍鐢ㄦ埛淇℃伅
   userInfo: null,
   tableHeightNew: 300,
-  sysConfig: { title: '', subtitle: '' },
   primaryColor: '#2080f7',
   // 棣栭〉
   homePage: null,
@@ -29,21 +27,10 @@
   // tags鏁扮粍
   tags: [],
   // tagsview鏍囩鏄剧ず闅愯棌
-  isCollapse: false,
-  // 椤堕儴鑿滃崟绱㈠紩
-  currentIndex: 0
+  isCollapse: false
 }
 
 const mutations = {
-  // 璁剧疆椤堕儴鑿滃崟绱㈠紩
-  setCurrentIndex (state, index) {
-    console.log('璁剧疆椤堕儴鑿滃崟绱㈠紩', index)
-    state.currentIndex = index
-  },
-  setSysconfig (state, config) {
-    state.sysConfig = { title: config.title || '', subtitle: config.subtitle || '' }
-    document.title =  state.sysConfig.title+ state.sysConfig.subtitle
-  },
   // 鍒囨崲鑿滃崟鐘舵��
   switchCollapseMenu (state, value) {
     if (value != null) {
@@ -73,8 +60,8 @@
   },
   // 璁剧疆棣栭〉璺敱淇℃伅
   setTopMenuCurrent (state, current) {
-    console.log('setTopMenuCurrent', current)
-    if (current.id !== state.topMenuCurrent.id) {
+    console.log("setTopMenuCurrent",current)
+    if(current.id !== state.topMenuCurrent.id){
       state.topMenuList.list.forEach(item => {
         console.log(item.id, item.id)
         if (current.id == item.id) {
@@ -86,7 +73,7 @@
   },
   // 閲嶇疆鑿滃崟
   resetMenus: (state) => {
-    state.topMenuId = null
+    state.topMenuId=null;
     state.menuData.list = []
   },
   //  tags
@@ -95,7 +82,7 @@
     // findindex鎵捐鏍囷紝寰幆鍒ゆ柇涓�涓嬶紝濡傛灉绛変簬閭d箞灏变唬琛ㄦ湁鐩稿悓鐨勶紝灏变笉蹇呮坊鍔狅紝濡傛灉鎵句笉鍒伴偅灏辨槸-1.灏辨坊鍔�
     // state.tags = [{ ...val, keepAlive: false }]
     const result = state.tags.findIndex(item => item.index === val.index)
-    if (result === -1) {
+      if (result === -1) {
       state.tags.push({ ...val, keepAlive: false })
     } else {
       state.tags[result] = { ...val, keepAlive: false }

--
Gitblit v1.9.3