修复TPI问题

dev_daiao
tangjiang 5 years ago
parent fc4ec9aab3
commit ab88d8d83a

@ -179,7 +179,6 @@ class DeveloperHome extends React.PureComponent {
componentDidMount() { componentDidMount() {
// 是否是我的,如果是我的 显示编辑按钮 // 是否是我的,如果是我的 显示编辑按钮
const { isMySource } = this.props; const { isMySource } = this.props;
console.log(this.props); console.log(this.props);
if (isMySource) { if (isMySource) {
this.handleFilterSearch({come_from: 'mine'}); this.handleFilterSearch({come_from: 'mine'});

@ -7,6 +7,7 @@
*/ */
import React from 'react'; import React from 'react';
import { TPMIndexHOC } from '../tpm/TPMIndexHOC'; import { TPMIndexHOC } from '../tpm/TPMIndexHOC';
import { SnackbarHOC } from 'educoder';
import DeveloperHome from './DeveloperHome'; import DeveloperHome from './DeveloperHome';
const App = (props) => { const App = (props) => {
@ -15,4 +16,4 @@ const App = (props) => {
); );
} }
export default TPMIndexHOC(App); export default SnackbarHOC()(TPMIndexHOC(App));

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2019-11-20 10:35:40 * @Date: 2019-11-20 10:35:40
* @LastEditors: tangjiang * @LastEditors: tangjiang
* @LastEditTime: 2019-12-04 19:56:43 * @LastEditTime: 2019-12-05 18:07:32
*/ */
import 'quill/dist/quill.core.css'; import 'quill/dist/quill.core.css';
import 'quill/dist/quill.bubble.css'; import 'quill/dist/quill.bubble.css';
@ -18,6 +18,7 @@ import AddTestDemo from './AddTestDemo';
import QuillEditor from '../../../quillEditor'; import QuillEditor from '../../../quillEditor';
import actions from '../../../../../redux/actions'; import actions from '../../../../../redux/actions';
import CONST from '../../../../../constants'; import CONST from '../../../../../constants';
import { fromStore, toStore } from 'educoder'; // 保存和读取store值
const scrollIntoView = require('scroll-into-view'); const scrollIntoView = require('scroll-into-view');
const {jcLabel} = CONST; const {jcLabel} = CONST;
const FormItem = Form.Item; const FormItem = Form.Item;
@ -110,6 +111,8 @@ class EditTab extends React.Component {
// 改变描述信息 // 改变描述信息
handleChangeDescription = (value) => { handleChangeDescription = (value) => {
// console.log('获取的编辑器内容为: ', value); // console.log('获取的编辑器内容为: ', value);
// 描述信息变化时将信息保存至store中
toStore('oj_description', value);
this.props.validateOjDescription(value); this.props.validateOjDescription(value);
} }
// 改变难易度 // 改变难易度

Loading…
Cancel
Save