Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

ds147000 / react-project-storage

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • react-project-storage
  • src
  • store
  • modules
  • route
  • index.js
  • GGbong's avatar
    菜单自动化 · ad98cba4
    GGbong committed Jul 21, 2020
    ad98cba4 Browse Directory
index.js 286 Bytes
BlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import data from './data.json'

export default {
    state: {
        route: data        
    },
    reducers: {
        add(state, route) {
            return { route: [...state, route] }
        },
        change(_, route) {
            return { route: [...route] }
        }
    }
}