From 0f1a17e66acb6bff7a17180e4ccfe21504ae53bd Mon Sep 17 00:00:00 2001 From: sheng <625171796@qq.com> Date: Fri, 8 Dec 2023 14:42:58 +0800 Subject: [PATCH] fix responseBodyDiff not fresh --- 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) }); }