防止内存泄漏
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
e245057bb2
commit
728f3238ca
|
|
@ -1968,7 +1968,12 @@ export default {
|
|||
return rgbToHex(rgb.r, rgb.g, rgb.b);
|
||||
}
|
||||
},
|
||||
|
||||
destroyed() {
|
||||
if (this.timer) {
|
||||
clearInterval(this.timer)
|
||||
this.timer = null
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
|||
Loading…
Reference in New Issue