|
@ -53,10 +53,16 @@ export default { |
|
|
this.timer = null; |
|
|
this.timer = null; |
|
|
} |
|
|
} |
|
|
this.setLight(value.step); |
|
|
this.setLight(value.step); |
|
|
} else { |
|
|
} else if (value && !value.step) { |
|
|
if (!this.timer && this.num === null) { |
|
|
if (!this.timer && this.num === null) { |
|
|
this.setTime(); |
|
|
this.setTime(); |
|
|
} |
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
if (this.timer) { |
|
|
|
|
|
clearInterval(this.timer); |
|
|
|
|
|
this.timer = null; |
|
|
|
|
|
} |
|
|
|
|
|
this.setTime(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|