From b28526418e28c040f6de3abcaa882f773d16d31e Mon Sep 17 00:00:00 2001 From: sheng <625171796@qq.com> Date: Fri, 8 Dec 2023 14:46:40 +0800 Subject: [PATCH] fix responsebodydiff not fresh when change flow detail --- frontend/src/components/CodeDiffEditor.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/CodeDiffEditor.vue b/frontend/src/components/CodeDiffEditor.vue index 33452c073..4424b4ec2 100644 --- a/frontend/src/components/CodeDiffEditor.vue +++ b/frontend/src/components/CodeDiffEditor.vue @@ -33,8 +33,8 @@ export default { console.debug("Code diff editor: content change"); if (this.editor) { this.editor.setModel({ - original: monaco.editor.createModel(this.content, this.language), - modified: monaco.editor.createModel(this.diffContent, this.language) + original: monaco.editor.createModel(this.content.respData, this.language), + modified: monaco.editor.createModel(this.diffContent.content, this.language) }); }