diff --git a/public/react/src/modules/developer/studentStudy/index.js b/public/react/src/modules/developer/studentStudy/index.js index 8f8dd1907..ee6ab47cf 100644 --- a/public/react/src/modules/developer/studentStudy/index.js +++ b/public/react/src/modules/developer/studentStudy/index.js @@ -42,10 +42,6 @@ function StudentStudy(props) { useEffect(() => { // 保存当前的id saveUserProgramIdentifier(id); - // startProgramQuestion(id); - // console.log("getUserProgramDetail(id)"); - // console.log(id); - // console.log(id.charAt(id.length-1)); try { if (id.charAt(id.length - 1) === "?") { id = id.substring(0, id.length - 1); @@ -69,16 +65,14 @@ function StudentStudy(props) { changeUserCodeTab(tab); } }, []); - // console.log(hack, hack.modify_code) useEffect(() => { if (hack && hack.modify_code && hasUpdate) { // 代码更改,提示是否需要更新代码 setHasUpdate(false); handleUpdateNotice(); } - }, [hack, hasUpdate]); + }, [hack, hack.modify_code, hasUpdate]); const handleUpdateNotice = () => { - console.log(props); props.confirm({ title: '提示', content: ( @@ -91,22 +85,7 @@ function StudentStudy(props) { restoreInitialCode(id, '更新成功'); } }) - // Modal.confirm({ - // title: '提示', - // content: ( - //

- // 代码文件有更新啦
- // 还未提交的代码,请自行保存 - //

- // ), - // okText: '立即更新', - // cancelText: '稍后再说', - // onOk () { - // restoreInitialCode(id, '更新成功'); - // } - // }); } - // const _hack_id = hack_identifier || fromStore('hack_identifier'); // 处理编辑 const handleClickEditor = (identifier) => { if (!identifier) return;