Browse Source

修改拖拽BUG

lan 3 years ago
parent
commit
40d1bc4827
1 changed files with 1 additions and 1 deletions
  1. 1 1
      assets/script/rule/DragRule.ts

+ 1 - 1
assets/script/rule/DragRule.ts

@@ -138,7 +138,7 @@ export default class DragRule extends BaseRule {
         let isValid = false
         if (endRule.containValue != '-1') {
             let tempArr = endRule.containValue.split(',')
-            isValid = tempArr.filter(value1 => value1 == this.value).length > 0
+            isValid = tempArr.filter(value1 => value1 == curValue).length > 0
         }
         // 返回结果
         let result: IRuleResult = {fo: this.node, to: this.endNode, isValid: isValid}