防止内存泄漏
continuous-integration/drone/push Build is passing Details

uat_us
wangxiaoshuang 2026-04-29 17:35:25 +08:00
parent e245057bb2
commit 728f3238ca
1 changed files with 7 additions and 2 deletions

View File

@ -1968,7 +1968,12 @@ export default {
return rgbToHex(rgb.r, rgb.g, rgb.b); return rgbToHex(rgb.r, rgb.g, rgb.b);
} }
}, },
destroyed() {
if (this.timer) {
clearInterval(this.timer)
this.timer = null
}
}
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>