From e6ec0f465d26c1228e96365e3d29f04e4661c457 Mon Sep 17 00:00:00 2001
From: rk <94314517@qq.com>
Date: 星期三, 12 十一月 2025 09:14:10 +0800
Subject: [PATCH] 简道云对接

---
 admin/src/store/index.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/admin/src/store/index.js b/admin/src/store/index.js
index f76eee9..65559a6 100644
--- a/admin/src/store/index.js
+++ b/admin/src/store/index.js
@@ -1,5 +1,6 @@
 import Vue from 'vue'
 import Vuex from 'vuex'
+import router from '../router'
 Vue.use(Vuex)
 
 const state = {
@@ -27,10 +28,17 @@
   // tags鏁扮粍
   tags: [],
   // tagsview鏍囩鏄剧ず闅愯棌
-  isCollapse: false
+  isCollapse: false,
+  // 椤堕儴鑿滃崟绱㈠紩
+  currentIndex: 0
 }
 
 const mutations = {
+  // 璁剧疆椤堕儴鑿滃崟绱㈠紩
+  setCurrentIndex(state, index) {
+    console.log('璁剧疆椤堕儴鑿滃崟绱㈠紩', index)
+    state.currentIndex = index
+  },
   // 鍒囨崲鑿滃崟鐘舵��
   switchCollapseMenu (state, value) {
     if (value != null) {
@@ -73,7 +81,7 @@
   },
   // 閲嶇疆鑿滃崟
   resetMenus: (state) => {
-    state.topMenuId=null;
+    state.topMenuId=null
     state.menuData.list = []
   },
   //  tags

--
Gitblit v1.9.3