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'];