Commit aa2baa1e authored by 刘殿昕's avatar 刘殿昕

服务测试bodys不传

parent b2251721
...@@ -614,13 +614,13 @@ export default { ...@@ -614,13 +614,13 @@ export default {
let bodys = ""; let bodys = "";
let contentType = ""; let contentType = "";
if (this.activeBtn == 0) { if (this.activeBtn == 0) {
bodys = this.$refs.jsonCodes.getCodesVal(); bodys = this.$refs.jsonCodes ? this.$refs.jsonCodes.getCodesVal() : "";
contentType = this.sjfwQqt; contentType = this.sjfwQqt;
} else if (this.activeBtn == 4) { } else if (this.activeBtn == 4) {
if (this.activeZh == 1) { if (this.activeZh == 1) {
contentType = this.zhfwQqt; contentType = this.zhfwQqt;
if (this.zhfwQqt == "JSON") { if (this.zhfwQqt == "JSON") {
bodys = this.$refs.zhfwJsonCodes.getCodesVal(); bodys = this.$refs.zhfwJsonCodes ? this.$refs.zhfwJsonCodes.getCodesVal() : "";
} else if (this.zhfwQqt == "form-data") { } else if (this.zhfwQqt == "form-data") {
let request = this.$refs.fwcs_zhfw_qq_form.getTableData().concat(); let request = this.$refs.fwcs_zhfw_qq_form.getTableData().concat();
request.pop(); request.pop();
...@@ -732,11 +732,11 @@ export default { ...@@ -732,11 +732,11 @@ export default {
if (this.cover.length != 0) { if (this.cover.length != 0) {
let contentType = ""; let contentType = "";
if (this.activeBtn == 0) { if (this.activeBtn == 0) {
bodys = this.$refs.jsonCodes.getCodesVal();
contentType = this.sjfwQqt; contentType = this.sjfwQqt;
} else if (this.activeBtn == 4) { } else if (this.activeBtn == 4) {
if (this.activeZh == 1) { if (this.activeZh == 1) {
contentType = this.zhfwQqt; contentType = this.zhfwQqt;
} }
} }
let query = { let query = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment