index.js 286 Bytes BlameHistoryPermalink Edit 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] } } } }