Newer
Older
Nanping_sponge_JXKH / src / bus / index.js
@liyingjing liyingjing on 25 Oct 2023 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