From 39220420fe38ae100d3037bb7dd5085d101ee941 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Tue, 26 Jan 2021 21:45:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E5=8A=A8=E6=A0=BC=E5=BC=8F?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../definition/components/response/ResponseResult.vue | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/response/ResponseResult.vue b/frontend/src/business/components/api/definition/components/response/ResponseResult.vue index 83ed95ee60..14cc6805ee 100644 --- a/frontend/src/business/components/api/definition/components/response/ResponseResult.vue +++ b/frontend/src/business/components/api/definition/components/response/ResponseResult.vue @@ -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() {