update 菜单搜索
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
12
web-react/src/store/reducer/nav.js
Normal file
12
web-react/src/store/reducer/nav.js
Normal 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
|
||||
0
web-react/src/store/reducer/pane.js
Normal file
0
web-react/src/store/reducer/pane.js
Normal file
Reference in New Issue
Block a user