admin/src/store/index.js
@@ -28,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) {