update 菜单搜索

This commit is contained in:
2021-06-17 14:11:44 +08:00
parent cad86cf7a5
commit 67a58cf7c4
8 changed files with 189 additions and 8 deletions

View File

@@ -1,11 +1,13 @@
import { combineReducers } from 'redux'
import user from './user'
import layout from './layout'
import nav from './nav'
import dictData from './dict-data'
const combine = combineReducers({
user,
layout,
nav,
dictData
})

View File

@@ -0,0 +1,12 @@
const nav = (state = { nav: [] }, action) => {
// 写入各种action对应的操作
switch (action.type) {
case 'SET_ANV':
const _state = { ...state, nav: action.nav }
return _state
default:
return state
}
}
export default nav

View File