MrShi
7 小时以前 bff05c941230c57f0a1ed8d0e3c4f9c7b2b8af13
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) {