diff --git a/backend/src/main/java/io/metersphere/xpack b/backend/src/main/java/io/metersphere/xpack
index 419c75bca6..57d6f78efa 160000
--- a/backend/src/main/java/io/metersphere/xpack
+++ b/backend/src/main/java/io/metersphere/xpack
@@ -1 +1 @@
-Subproject commit 419c75bca64b7c5bfbd1194d7f0fd9919f0caa04
+Subproject commit 57d6f78efa4b0300be188e8b024511ceef0873ed
diff --git a/frontend/src/business/components/api/test/components/body/ApiBody.vue b/frontend/src/business/components/api/test/components/body/ApiBody.vue
index e8a0161a37..ce63d08e89 100644
--- a/frontend/src/business/components/api/test/components/body/ApiBody.vue
+++ b/frontend/src/business/components/api/test/components/body/ApiBody.vue
@@ -20,7 +20,7 @@
:description="$t('api_test.request.parameters_desc')"
v-if="body.isKV()"/>
-
+
diff --git a/frontend/src/business/components/common/components/MsCodeEdit.vue b/frontend/src/business/components/common/components/MsCodeEdit.vue
index afbe57255c..2f443ee120 100644
--- a/frontend/src/business/components/common/components/MsCodeEdit.vue
+++ b/frontend/src/business/components/common/components/MsCodeEdit.vue
@@ -28,6 +28,12 @@
init: {
type: Function
},
+ enableFormat: {
+ type: Boolean,
+ default() {
+ return true;
+ }
+ },
readOnly: {
type: Boolean,
default() {
@@ -74,20 +80,24 @@
}
},
format() {
- switch (this.mode) {
- case 'json':
- this.formatData = formatJson(this.data);
- break;
- case 'html':
- this.formatData = toDiffableHtml(this.data);
- break;
- case 'xml':
- this.formatData = formatXml(this.data);
- break;
- default:
- if (this.data) {
- this.formatData = this.data;
- }
+ if (this.enableFormat) {
+ switch (this.mode) {
+ case 'json':
+ this.formatData = formatJson(this.data);
+ break;
+ case 'html':
+ this.formatData = toDiffableHtml(this.data);
+ break;
+ case 'xml':
+ this.formatData = formatXml(this.data);
+ break;
+ default:
+ if (this.data) {
+ this.formatData = this.data;
+ }
+ }
+ } else {
+ this.formatData = this.data;
}
}
}
diff --git a/frontend/src/business/components/xpack b/frontend/src/business/components/xpack
index 33bbdb3f52..71d57ae5d7 160000
--- a/frontend/src/business/components/xpack
+++ b/frontend/src/business/components/xpack
@@ -1 +1 @@
-Subproject commit 33bbdb3f528c914bf333b2c1839dd6d3bbd9b569
+Subproject commit 71d57ae5d7f8bb5c93a29504ac6f2300dc189ce9