添加todo

This commit is contained in:
谢思 2021-10-23 19:50:17 +08:00
parent bcdb631c20
commit ec133a6880
1 changed files with 1 additions and 2 deletions

View File

@ -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;