From ed74ad21bbc404af56c161e6ea8f4c5331305d10 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Sat, 2 Apr 2022 16:26:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8DMock=E8=AF=B7=E6=B1=82=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E4=BD=93xml=E6=A0=BC=E5=BC=8F=E7=9A=84xml=20header=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=82=A8=E5=AD=98=E7=A9=BA=E6=8A=A5=E6=96=87=E5=A4=B4?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复Mock请求响应体xml格式的xml header无法储存空报文头的问题 --- .../components/mock/Components/MockApiResponseBody.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/mock/Components/MockApiResponseBody.vue b/frontend/src/business/components/api/definition/components/mock/Components/MockApiResponseBody.vue index b4d88da95f..2870f54a39 100644 --- a/frontend/src/business/components/api/definition/components/mock/Components/MockApiResponseBody.vue +++ b/frontend/src/business/components/api/definition/components/mock/Components/MockApiResponseBody.vue @@ -349,9 +349,8 @@ export default { if (!this.body.scriptObject) { this.body.scriptObject = {}; } - if (!this.body.xmlHeader) { - this.body.xmlHeader = 'version="1.0" encoding="UTF-8"'; + this.body.xmlHeader = ''; } } }