平台内核提供了事件总线,可用于解耦业务模块之间的交互。
import eventBus from "../eventbus" // 发送事件 eventBus.emit("EVENT_XXX") // 监听事件并处理 eventBus.on("EVENT_XXX", handleXxxEvent)