chore: remove unused console

This commit is contained in:
Tristan Yang
2022-08-31 22:13:35 +08:00
parent be7d547719
commit 65f8917657
31 changed files with 44 additions and 65 deletions
+1 -4
View File
@@ -86,11 +86,9 @@ const Plugins: FC<Props> = ({
useKey(
"Enter",
(evt) => {
// console.log("tttt", plateEditor);
if (!plateEditor) return;
// 是否在at操作
const mentionInputs = findMentionInput(plateEditor);
// console.log("tttt", mentionInputs, evt);
if (mentionInputs || evt.shiftKey || evt.ctrlKey || evt.altKey || evt.isComposing) {
return true;
}
@@ -142,7 +140,7 @@ const Plugins: FC<Props> = ({
const handleChange = useCallback(
async (val: any) => {
console.log("tmps changed", val);
// console.log("tmps changed", val);
const tmps = [];
const getMixedText = (children: any) => {
const mentions: any = [];
@@ -186,7 +184,6 @@ const Plugins: FC<Props> = ({
});
const msgs = arr.filter(({ content }) => !!content);
setMsgs(msgs);
// console.log("tmps", tmps, arr, msgs);
},
[msgs]
);