fix(editor): 编辑器销毁不应该移除依赖收集任务的事件监听

This commit is contained in:
roymondchen 2025-02-12 14:08:27 +08:00
parent 098351bb21
commit 6e2b5aea47

View File

@ -191,7 +191,6 @@ class Dep extends BaseService {
}
public reset() {
this.idleTask.removeAllListeners();
this.idleTask.clearTasks();
for (const type of Object.keys(this.watcher.getTargetsList())) {
@ -202,6 +201,8 @@ class Dep extends BaseService {
}
public destroy() {
this.idleTask.removeAllListeners();
this.removeAllListeners();
this.reset();
this.removeAllPlugins();