fix: cancel log

This commit is contained in:
shuai 2022-12-02 16:16:28 +08:00
parent 1f2be0c8d6
commit 9d3e1b5334
1 changed files with 1 additions and 1 deletions
ui/src/utils

View File

@ -177,7 +177,7 @@ function diffText(newText: string, oldText: string): string {
?.replace(/<input/gi, '&lt;input');
}
const diff = Diff.diffChars(oldText, newText);
console.log(diff);
// console.log(diff);
const result = diff.map((part) => {
if (part.added) {
if (part.value.replace(/\n/g, '').length <= 0) {