fix: json结果自动格式化
This commit is contained in:
parent
668949a918
commit
cf9e24f069
|
@ -101,10 +101,10 @@
|
||||||
this.mode = mode;
|
this.mode = mode;
|
||||||
},
|
},
|
||||||
setBodyType() {
|
setBodyType() {
|
||||||
if (!this.response.headers) {
|
if (!this.response.responseResult.headers) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.response.headers.indexOf("Content-Type: application/json") > 0) {
|
if (this.response.responseResult.headers.indexOf("Content-Type: application/json") > 0) {
|
||||||
if (this.$refs.modeDropdown) {
|
if (this.$refs.modeDropdown) {
|
||||||
this.$refs.modeDropdown.handleCommand(BODY_FORMAT.JSON);
|
this.$refs.modeDropdown.handleCommand(BODY_FORMAT.JSON);
|
||||||
this.msCodeReload();
|
this.msCodeReload();
|
||||||
|
|
Loading…
Reference in New Issue