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