fix(接口定义): 修复场景引用别的场景自定义脚本不执行的缺陷 (#18150)
--bug=1017074 --user=王孝刚 【接口测试】github #18028,新建一个接口自动化场景,输入名称,然后引用一个场景,被引用场景里有自定义脚本,在未保存的情况下,选择环境,点调试,被引用场景自定义脚本不会被执行。 https://www.tapd.cn/55049933/s/1248955 Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
62307f0e44
commit
b3fd90c65e
|
@ -392,9 +392,9 @@ import {
|
|||
handleCtrlREvent,
|
||||
handleCtrlSEvent,
|
||||
hasLicense,
|
||||
hasPermission,
|
||||
objToStrMap,
|
||||
strMapToObj,
|
||||
hasPermission
|
||||
strMapToObj
|
||||
} from "@/common/js/utils";
|
||||
import "@/common/css/material-icons.css";
|
||||
import OutsideClick from "@/common/js/outside-click";
|
||||
|
@ -1393,7 +1393,7 @@ export default {
|
|||
},
|
||||
resetResourceId(hashTree) {
|
||||
hashTree.forEach(item => {
|
||||
item.resourceId = getUUID();
|
||||
item.resourceId = item.resourceId || getUUID();
|
||||
if (item.hashTree && item.hashTree.length > 0) {
|
||||
this.resetResourceId(item.hashTree);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue