fix(接口测试): 修复场景断言可以拖拽的缺陷

--bug=1013448 --user=王孝刚 【接口测试】场景断言-保持置顶显示-不支持拖动更换步骤位置
https://www.tapd.cn/55049933/s/1163878
This commit is contained in:
wxg0103 2022-05-25 15:56:46 +08:00 committed by f2c-ci-robot[bot]
parent a3b8ddf964
commit 9d008fcff8
1 changed files with 3 additions and 0 deletions

View File

@ -1513,6 +1513,9 @@ export default {
this.getEnvironments();
},
allowDrop(draggingNode, dropNode, dropType) {
if (draggingNode.data.type === 'Assertions' || dropNode.data.type === 'Assertions') {
return false;
}
//
if (dropType != "inner") {
if (draggingNode.data.disabled && draggingNode.parent && draggingNode.parent.data && draggingNode.parent.data.disabled) {