mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-26 17:27:23 +08:00
fix(lyric): 组件卸载时清理 groupFadeTimer 防止内存泄漏
This commit is contained in:
@@ -962,6 +962,10 @@ const handleMouseDown = (e: MouseEvent) => {
|
|||||||
// 组件卸载时清理
|
// 组件卸载时清理
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
isDragging.value = false;
|
isDragging.value = false;
|
||||||
|
if (groupFadeTimer !== null) {
|
||||||
|
clearTimeout(groupFadeTimer);
|
||||||
|
groupFadeTimer = null;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user