fix(接口测试): 修复json请求体内容替换后,旧描述依然在,且新描述输入不了的缺陷
--bug=1025048 --user=王孝刚 【接口测试】github#23336,接口 json 请求体内容替换后,旧描述依然在,且新描述输入不了 https://www.tapd.cn/55049933/s/1358884
This commit is contained in:
parent
a2307dd428
commit
93f31c8e5f
|
@ -263,7 +263,7 @@ export default {
|
||||||
if (!this.body.jsonSchema.type) {
|
if (!this.body.jsonSchema.type) {
|
||||||
this.body.jsonSchema.type = data.type;
|
this.body.jsonSchema.type = data.type;
|
||||||
}
|
}
|
||||||
this.body.jsonSchema = this.deepAssign(this.body.jsonSchema, data);
|
this.body.jsonSchema = JSON.parse(JSON.stringify(this.deepAssign(this.body.jsonSchema, data)));
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
this.body.format = 'JSON';
|
this.body.format = 'JSON';
|
||||||
|
|
|
@ -1146,7 +1146,9 @@ export default {
|
||||||
if (!this.basisData.environmentId) {
|
if (!this.basisData.environmentId) {
|
||||||
this.basisData.environmentId = '';
|
this.basisData.environmentId = '';
|
||||||
}
|
}
|
||||||
if (this.basisData.moduleId && this.basisData.moduleId === 'default-module') {
|
if (this.basisData.moduleId &&
|
||||||
|
this.basisData.moduleId === 'default-module' &&
|
||||||
|
this.moduleOptions) {
|
||||||
this.basisData.moduleId = this.moduleOptions[0].id;
|
this.basisData.moduleId = this.moduleOptions[0].id;
|
||||||
}
|
}
|
||||||
if (this.basisData.isCopy) {
|
if (this.basisData.isCopy) {
|
||||||
|
|
Loading…
Reference in New Issue