fix: 清除所有监听方法

This commit is contained in:
wangzhongjie 2025-07-22 15:21:47 +08:00
parent 94d7ba9194
commit 6584d8e2cb

View File

@ -50,6 +50,11 @@ class differentialAndSignal {
this.events = this.events.filter((cb) => cb !== callback); this.events = this.events.filter((cb) => cb !== callback);
} }
// 清除监听
clearMsg() {
this.events = []
}
// 关闭 // 关闭
close() { close() {
this.events = []; this.events = [];