fix: 自动格式化

This commit is contained in:
chenjianxing 2021-01-26 21:45:45 +08:00
parent 55ed001b16
commit 39220420fe
1 changed files with 7 additions and 4 deletions

View File

@ -105,10 +105,13 @@
return;
}
if (this.response.responseResult.headers.indexOf("Content-Type: application/json") > 0) {
if (this.$refs.modeDropdown) {
this.$refs.modeDropdown.handleCommand(BODY_FORMAT.JSON);
this.msCodeReload();
}
this.mode = BODY_FORMAT.JSON;
this.$nextTick(() => {
if (this.$refs.modeDropdown) {
this.$refs.modeDropdown.handleCommand(BODY_FORMAT.JSON);
this.msCodeReload();
}
})
}
},
msCodeReload() {