|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
* @Github:
|
|
|
|
|
* @Date: 2019-11-20 16:40:32
|
|
|
|
|
* @LastEditors : tangjiang
|
|
|
|
|
* @LastEditTime : 2020-01-02 17:36:40
|
|
|
|
|
* @LastEditTime : 2020-01-03 16:39:09
|
|
|
|
|
*/
|
|
|
|
|
import { Base64 } from 'js-base64';
|
|
|
|
|
import types from '../actions/actionTypes';
|
|
|
|
@ -348,6 +348,13 @@ const ojFormReducer = (state = initialState, action) => {
|
|
|
|
|
knowledges: action.payload
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
case types.SET_OJ_INITIAL_VALUE:
|
|
|
|
|
const _p = action.payload;
|
|
|
|
|
return {
|
|
|
|
|
...state,
|
|
|
|
|
ojForm: Object.assign({}, state.ojForm, {difficult: _p.difficult, sub_discipline_id: _p.sub_discipline_id}),
|
|
|
|
|
tag_discipline_id: _p.tag_discipline_id || []
|
|
|
|
|
}
|
|
|
|
|
default:
|
|
|
|
|
return state;
|
|
|
|
|
}
|
|
|
|
|