新建 bus.js
import mitt from 'mitt'
export default new mitt()
发送值的页面
import emitter from '../utils/eventBus.js'
emitter.emit('form', form)
接收值的页面
import emitter from '../utils/eventBus.js'
emitter.on('form', e =>{
console.log(e,'==')
})