Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

newyslclassrooms
daiao 5 years ago
commit de8800cefa

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

@ -17,7 +17,6 @@ const initialState = {
commitTestRecordDetail: {}, // 调试代码执行结果 commitTestRecordDetail: {}, // 调试代码执行结果
commitRecordDetail: {}, // 提交成功后记录提交的详情 commitRecordDetail: {}, // 提交成功后记录提交的详情
commitRecord: [], // 提交记录 commitRecord: [], // 提交记录
userCode: '', // 保存当前用户输入的代码
isUpdateCode: false, // 是否更新了代码内容 isUpdateCode: false, // 是否更新了代码内容
userCodeTab: 'task', // 学员测评tab位置: task | record | comment userCodeTab: 'task', // 学员测评tab位置: task | record | comment
userTestInput: '', // 用户自定义输入值 userTestInput: '', // 用户自定义输入值
@ -59,7 +58,7 @@ const ojForUserReducer = (state = initialState, action) => {
hack: Object.assign({}, hack), hack: Object.assign({}, hack),
test_case: Object.assign({}, test_case), test_case: Object.assign({}, test_case),
comment_identifier: hack.identifier, comment_identifier: hack.identifier,
userCode: tempCode editor_code: tempCode
} }
case types.COMMIT_RECORD_DETAIL: case types.COMMIT_RECORD_DETAIL:
let result = action.payload.data; let result = action.payload.data;
@ -127,7 +126,8 @@ const ojForUserReducer = (state = initialState, action) => {
} }
return { return {
...state, ...state,
recordDetail: tempDetail recordDetail: tempDetail,
editor_code: tempDetail['code']
} }
case types.RESTORE_INITIAL_CODE: case types.RESTORE_INITIAL_CODE:
const curHack = state.hack; const curHack = state.hack;

Loading…
Cancel
Save