diff --git a/src/modules/tpm/challengesnew/tpm-md-editor.js b/src/modules/tpm/challengesnew/tpm-md-editor.js index 437d2bce..85ee2219 100644 --- a/src/modules/tpm/challengesnew/tpm-md-editor.js +++ b/src/modules/tpm/challengesnew/tpm-md-editor.js @@ -87,6 +87,7 @@ export default ({ mdID, onChange, onCMBeforeChange, onCMBlur, error = false, cla const editorBodyId = `mdEditors_${mdID}`; const tipId = `e_tips_mdEditor_${mdID}`; + //todo:需要替换成可@用户列表接口,由于forge接口名称冲突,src\forge\UsersList\fork_users.js接口/members.json需要换成/forks.json useEffect(()=>{ isCanAtme && axios.get('/users/list.json',{ params: { @@ -145,7 +146,6 @@ export default ({ mdID, onChange, onCMBeforeChange, onCMBlur, error = false, cla //markdown编辑器中输入的键盘监听事件 function mdKeyDown(){ document.onkeydown = e=>{ - console.log("markdown",atWhoVisible); if (e.key === "@") { // 输入@键后在对应的位置显示可选的项目成员 setAtWhoVisible(true); @@ -195,7 +195,6 @@ export default ({ mdID, onChange, onCMBeforeChange, onCMBlur, error = false, cla function atWhoKeyDown(){ //监听上下和enter键 document.onkeydown = (e) =>{ - console.log("atwho列表",atWhoVisible); const atWhoListDiv = document.getElementById("at_who_list"); const atWhoDivs = document.getElementsByClassName("at_who"); let index;