diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index 1f23dd7fb0daa7109335973cb143fdf3f0ccb661..3ca57dc055ec39f82a51d304631af84d1d7f7f29 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 = {