mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-27 05:30:14 +08:00
22 lines
327 B
JavaScript
22 lines
327 B
JavaScript
import {
|
|
CHANGE_CUR_UID
|
|
} from '../../constants/action-types';
|
|
|
|
const initialState = {
|
|
curUid: "0"
|
|
};
|
|
|
|
export default (state = initialState, action) => {
|
|
switch (action.type) {
|
|
case CHANGE_CUR_UID: {
|
|
return {
|
|
...state,
|
|
curUid: action.data
|
|
};
|
|
}
|
|
|
|
default:
|
|
return state;
|
|
}
|
|
};
|