From aa2baa1e9b0ef59ef47d96dcb8684d90b85e819a Mon Sep 17 00:00:00 2001 From: liudianxin Date: Mon, 29 Jun 2020 10:18:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E6=B5=8B=E8=AF=95bodys?= =?UTF-8?q?=E4=B8=8D=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbench/fwzc_fwcs.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 1f23dd7..3ca57dc 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -614,13 +614,13 @@ export default { let bodys = ""; let contentType = ""; if (this.activeBtn == 0) { - bodys = this.$refs.jsonCodes.getCodesVal(); + bodys = this.$refs.jsonCodes ? this.$refs.jsonCodes.getCodesVal() : ""; contentType = this.sjfwQqt; } else if (this.activeBtn == 4) { if (this.activeZh == 1) { contentType = this.zhfwQqt; if (this.zhfwQqt == "JSON") { - bodys = this.$refs.zhfwJsonCodes.getCodesVal(); + bodys = this.$refs.zhfwJsonCodes ? this.$refs.zhfwJsonCodes.getCodesVal() : ""; } else if (this.zhfwQqt == "form-data") { let request = this.$refs.fwcs_zhfw_qq_form.getTableData().concat(); request.pop(); @@ -732,11 +732,11 @@ export default { if (this.cover.length != 0) { let contentType = ""; if (this.activeBtn == 0) { - bodys = this.$refs.jsonCodes.getCodesVal(); contentType = this.sjfwQqt; } else if (this.activeBtn == 4) { if (this.activeZh == 1) { contentType = this.zhfwQqt; + } } let query = { -- 2.26.0