Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

micro-customization-system / 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
  • oEshield
  • src
  • vuex
  • modules
  • menu.js
  • 冒粤蓉's avatar
    init · 055abaef
    冒粤蓉 committed May 24, 2021
    055abaef
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
}