diff --git a/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js b/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js index 612f1104e..fa726cc70 100644 --- a/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js +++ b/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js @@ -297,7 +297,6 @@ class EditTab extends React.Component { { header: 1 }, { header: 2 }, // {size: ['12px', '14px', '16px', '18px', '20px', false]}, 'bold', 'italic', 'underline', 'strike', // 切换按钮 - 'blockquote', 'code-block', // 代码块 { align: [] }, { 'list': 'ordered' }, { 'list': 'bullet' }, // 列表 { 'script': 'sub' }, { 'script': 'super' }, { 'color': [] }, { 'background': [] }, // 字体颜色与背景色 diff --git a/public/react/src/redux/reducers/ojForUserReducer.js b/public/react/src/redux/reducers/ojForUserReducer.js index d257067bc..768d1f6ef 100644 --- a/public/react/src/redux/reducers/ojForUserReducer.js +++ b/public/react/src/redux/reducers/ojForUserReducer.js @@ -98,7 +98,7 @@ const ojForUserReducer = (state = initialState, action) => { // let curCode = Base64.encode(action.payload); return { ...state, - userCode: action.payload, + editor_code: action.payload, isUpdateCode: true, } case types.IS_UPDATE_CODE: