From 01c9a4dca09706cac50445cfffcccaca5217b686 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Tue, 10 Dec 2024 10:53:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E5=8F=98=E6=9B=B4=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1046196 --user=王旭 【接口测试】github#33019,接口定义中对请求体数据类型变更[String-number]变更记录中无对应的记录显示 https://www.tapd.cn/55049933/s/1626711 --- .../frontend/src/business/history/api/ApiHistoryDetail.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api-test/frontend/src/business/history/api/ApiHistoryDetail.vue b/api-test/frontend/src/business/history/api/ApiHistoryDetail.vue index 901cb9577f..44165f41ea 100644 --- a/api-test/frontend/src/business/history/api/ApiHistoryDetail.vue +++ b/api-test/frontend/src/business/history/api/ApiHistoryDetail.vue @@ -94,12 +94,17 @@ export default { if (properties) { for (let key in properties) { let value = JSON.stringify(properties[key].mock); + let properType = properties[key]['**type'] if (value && value.indexOf('**mock') !== -1) { properties['++' + key] = JSON.parse(JSON.stringify(properties[key])); properties['--' + key] = JSON.parse(JSON.stringify(properties[key])); properties['--' + key].mock = { mock: JSON.parse(value)['**mock'] }; delete properties[key]; } + if (value && properType) { + properties['--' + key].type = properType; + delete properties[key]; + } if (properties[key] && properties[key]['++description']) { properties['++' + key] = JSON.parse(JSON.stringify(properties[key])); properties['++' + key].description = properties[key]['++description'];