This commit is contained in:
Vanessa 2023-10-21 21:00:10 +08:00
parent 4f928dc579
commit b63cc1839a
3 changed files with 6 additions and 2 deletions

View file

@ -8,6 +8,9 @@ export class EventBus<DetailType = any> {
}
on(type: TEventBus, listener: (event: CustomEvent<DetailType>) => void) {
if (type ==="loaded-protyle") {
console.warn("0.8.8 将移除 loaded-protyle, 请使用 loaded-protyle-static 进行替代");
}
this.eventTarget.addEventListener(type, listener);
}