Newer
Older
KaiFengPC / src / bus / index.js
@zhangdeliang zhangdeliang on 23 May 154 bytes 初始化项目

import mitt from "mitt";
const bus = {};
const emitter = mitt();
bus.on = emitter.on;
bus.off = emitter.off;
bus.emit = emitter.emit;
export default bus