mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
17 lines
297 B
JavaScript
17 lines
297 B
JavaScript
import {
|
|
FETCH_INTERFACE_DATA
|
|
} from '../../constants/action-types.js'
|
|
|
|
export default (state = 3333, action) => {
|
|
switch (action.type) {
|
|
case FETCH_INTERFACE_DATA: {
|
|
return {
|
|
...state,
|
|
icons: action.payload.data
|
|
};
|
|
}
|
|
default:
|
|
return state;
|
|
}
|
|
}
|