mirror of https://gitee.com/answerdev/answer.git
fix: cancel log
This commit is contained in:
parent
1f2be0c8d6
commit
9d3e1b5334
ui/src/utils
|
@ -177,7 +177,7 @@ function diffText(newText: string, oldText: string): string {
|
|||
?.replace(/<input/gi, '<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) {
|
||||
|
|
Loading…
Reference in New Issue