安装
npm install --save mitt
挂载到全局main.js
import {
createApp } from 'vue'
import mitt from 'mitt'
import App from './App.vue'
const app = createApp(App)
app.config.globalProperties
安装
npm install --save mitt
挂载到全局main.js
import {
createApp } from 'vue'
import mitt from 'mitt'
import App from './App.vue'
const app = createApp(App)
app.config.globalProperties