MrShi
2026-03-13 3ee1be7978ce01fb4db6de2c026e1b6975557abc
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 = {
@@ -60,7 +61,6 @@
  },
  // 设置首页路由信息
  setTopMenuCurrent (state, current) {
    console.log("setTopMenuCurrent",current)
    if(current.id !== state.topMenuCurrent.id){
      state.topMenuList.list.forEach(item => {
        console.log(item.id, item.id)
@@ -73,7 +73,7 @@
  },
  // 重置菜单
  resetMenus: (state) => {
    state.topMenuId=null;
    state.topMenuId=null
    state.menuData.list = []
  },
  //  tags