From 100605f9f0356acb9c8ce235955f31ef8c970a70 Mon Sep 17 00:00:00 2001 From: zhangjun1 Date: Wed, 4 Nov 2020 11:55:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E8=AF=A6=E6=83=85=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/workbench/fwgl/serviceDetail.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/workbench/fwgl/serviceDetail.vue b/src/pages/workbench/fwgl/serviceDetail.vue index 2439204..fa4f415 100644 --- a/src/pages/workbench/fwgl/serviceDetail.vue +++ b/src/pages/workbench/fwgl/serviceDetail.vue @@ -1387,29 +1387,29 @@ export default { this.$set( this.servicead_arr[0], "info", - this.request_arr[data.req_type - 1] + this.request_arr[data.urls[0].req_type - 1] ); // 请求方式 this.req_data = JSON.parse( - data.req_fields || data.req_query || "[]" + data.urls[0].req_fields || data.urls[0].req_query || "[]" ); // 请求参数 if (this.req_data && this.req_data.length === 0) { this.$set(this.servicead_arr[1], "type", ""); this.$set(this.servicead_arr[1], "info", "无请求参数"); } this.req_code_arr = - data.req_fields_example || data.req_query_example || ""; // 请求示例 + data.urls[0].req_fields_example || data.urls[0].req_query_example || ""; // 请求示例 if (!this.req_code_arr) { this.$set(this.servicead_arr[2], "type", ""); this.$set(this.servicead_arr[2], "info", "无请求示例"); } - this.$set(this.servicead_arr[3], "info", data.encode_method); // 编码格式 - this.res_data = JSON.parse(data.res_fields || "[]"); // 响应参数 + this.$set(this.servicead_arr[3], "info", data.urls[0].encode_method); // 编码格式 + this.res_data = JSON.parse(data.urls[0].res_fields || "[]"); // 响应参数 if (this.res_data && this.res_data.length === 0) { this.$set(this.servicead_arr[4], "type", ""); this.$set(this.servicead_arr[4], "info", "无响应参数"); } - console.log(data.res_fields_example) - this.res_code_arr = data.res_fields_example || ""; // 响应示例 + console.log(data.urls[0].res_fields_example) + this.res_code_arr = data.urls[0].res_fields_example || ""; // 响应示例 console.log(this.res_code_arr) if (!this.res_code_arr) { this.$set(this.servicead_arr[5], "type", ""); -- 2.26.0