From cab666e9a5b5ae38d5e653f4c112d8597c6107cc Mon Sep 17 00:00:00 2001 From: tangjiang <465264938@qq.com> Date: Fri, 13 Dec 2019 16:19:09 +0800 Subject: [PATCH] update --- .../components/myMonacoEditor/index.js | 4 ++-- .../modules/developer/studentStudy/index.js | 24 ++----------------- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/public/react/src/modules/developer/components/myMonacoEditor/index.js b/public/react/src/modules/developer/components/myMonacoEditor/index.js index 85fee0efa..60f54ee0a 100644 --- a/public/react/src/modules/developer/components/myMonacoEditor/index.js +++ b/public/react/src/modules/developer/components/myMonacoEditor/index.js @@ -4,11 +4,11 @@ * @Github: * @Date: 2019-11-27 15:02:52 * @LastEditors: tangjiang - * @LastEditTime: 2019-12-10 09:20:42 + * @LastEditTime: 2019-12-13 16:16:56 */ import './index.scss'; import React, { useState, useRef, useEffect } from 'react'; -import { Icon, Drawer, Modal } from 'antd'; +import { Drawer, Modal } from 'antd'; import { fromStore } from 'educoder'; import { connect } from 'react-redux'; import MonacoEditor from '@monaco-editor/react'; diff --git a/public/react/src/modules/developer/studentStudy/index.js b/public/react/src/modules/developer/studentStudy/index.js index 923017ffa..89e18223e 100644 --- a/public/react/src/modules/developer/studentStudy/index.js +++ b/public/react/src/modules/developer/studentStudy/index.js @@ -4,7 +4,7 @@ * @Github: * @Date: 2019-11-23 10:53:19 * @LastEditors: tangjiang - * @LastEditTime: 2019-12-12 19:08:24 + * @LastEditTime: 2019-12-13 16:15:45 */ import './index.scss'; import React, { useEffect, useState } from 'react'; @@ -46,7 +46,6 @@ function StudentStudy (props) { }, []); useEffect(() => { - console.log('=======>>>>>>>>'); const { hack = {} } = props; if (!hack.modify_code && isUpdate) { // 代码更改,提示是否需要更新代码 setIsUpdate(false); @@ -61,30 +60,11 @@ function StudentStudy (props) { okText: '立即更新', cancelText: '稍后再说', onOk () { - console.log('更新代码....'); + } }); } }, [props]); - // useEffect(() => { - // const {hack} = props; - // if (!hack.modify_code) { // 代码更改,提示是否需要更新代码 - // Modal.confirm({ - // title: '提示', - // content: ( - //
- // 代码文件有更新啦
- // 还未提交的代码,请自行保存
- //