fix(接口管理): 修复接口详情展示默认数据问题
--bug=1043780 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001043780
This commit is contained in:
parent
771024a172
commit
ba42c1712a
|
@ -480,6 +480,16 @@ export default {
|
|||
this.historicalDataProcessing(this.request.hashTree);
|
||||
}
|
||||
this.changeActiveName();
|
||||
if(this.headers && this.headers.length === 1) {
|
||||
if (this.headers[0].name !== '' && this.headers[0].name !== null && this.headers[0].name !== undefined) {
|
||||
this.headers.push(new KeyValue({ enable: true, name: '', value: '' }));
|
||||
}
|
||||
}
|
||||
if(this.request.rest && this.request.rest.length === 1) {
|
||||
if (this.request.rest[0].name !== '' && this.request.rest[0].name !== null && this.request.rest[0].name !== undefined) {
|
||||
this.request.rest.push(new KeyValue({ enable: true, name: '', value: '' }));
|
||||
}
|
||||
}
|
||||
},
|
||||
historicalDataProcessing(array) {
|
||||
hisDataProcessing(array, this.request);
|
||||
|
|
Loading…
Reference in New Issue