fix(接口定义): 修复场景保存文档断言失败的缺陷
--bug=1022333 --user=王孝刚 【接口测试】github#21527,场景中的接口添加文档结构断言,保存失败 https://www.tapd.cn/55049933/s/1331762
This commit is contained in:
parent
236346d0eb
commit
bc608e60b7
|
@ -160,7 +160,7 @@ export function stepCompute(array, request) {
|
||||||
|
|
||||||
export function mergeDocumentData(originalData, childMap, rootData) {
|
export function mergeDocumentData(originalData, childMap, rootData) {
|
||||||
originalData.forEach((item) => {
|
originalData.forEach((item) => {
|
||||||
if (item.id === 'root') {
|
if (item.id === 'root' && rootData) {
|
||||||
item.type = rootData.type;
|
item.type = rootData.type;
|
||||||
item.name = rootData.name;
|
item.name = rootData.name;
|
||||||
item.typeVerification = rootData.typeVerification;
|
item.typeVerification = rootData.typeVerification;
|
||||||
|
|
Loading…
Reference in New Issue