Commit 01b95571 by 陈超

T

parent 260470f7
...@@ -327,12 +327,11 @@ ...@@ -327,12 +327,11 @@
//Helper //Helper
onCondition: function(id, title, key) { onCondition: function(id, title, key) {
if(id.length == 0) { let idx = this.conditions.hx_indexOf( r => { return r.type == key })
let idx = this.conditions.hx_indexOf( r => { return r.type == key }) if(idx != -1) {
if(idx != -1) { this.conditions.splice(idx, 1)
this.conditions.splice(idx, 1) }
} if(id.length != 0) {
} else {
let condition = { let condition = {
type: key, type: key,
id: id, id: id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment