Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

e-shield / micro-oeshield

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • micro-oeshield
  • src
  • vuex
  • modules
  • menu.js
  • 张立顺's avatar
    chore: migrate legacy master snapshot · 1bb63a7c ...
    Source: git@192.168.3.233:micro-customization-system/oEshield.git
    Source-Commit: 0d1f889425fa4afc30f6cde1e3e2cff73ff27918
    张立顺 committed Sep 07, 2026
    1bb63a7c
menu.js 296 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import types from '../mutation-types'

const state = {
  main: [],
  isCollapse: false
}

const mutations = {
  [types.GET_MENU] (state, menu) {
    state.main = menu
  },
  [types.TOGGLE_COLLAPSE] (state) {
    state.isCollapse = !state.isCollapse
  }
}

export default {
  state,
  mutations
}