fix(接口定义): 修复场景第一次引用场景,可以修改被禁用的步骤的缺陷

--bug=1019922 --user=王孝刚 【接口测试】场景引用其他场景,第一次引用过来后可以开启禁用的步骤
https://www.tapd.cn/55049933/s/1299693
This commit is contained in:
wxg0103 2022-11-21 16:10:42 +08:00 committed by 刘瑞斌
parent 9a3849449f
commit 868f391703
1 changed files with 4 additions and 0 deletions

View File

@ -1628,6 +1628,10 @@ export default {
resetResourceId(hashTree) { resetResourceId(hashTree) {
hashTree.forEach((item) => { hashTree.forEach((item) => {
item.resourceId = item.resourceId || getUUID(); item.resourceId = item.resourceId || getUUID();
//
if (item.referenced === 'REF' && !item.enable) {
item.refEnable = true;
}
if (item.hashTree && item.hashTree.length > 0) { if (item.hashTree && item.hashTree.length > 0) {
this.resetResourceId(item.hashTree); this.resetResourceId(item.hashTree);
} }