DataStatistics数据显示页面---test.vue中测试全局弹窗提示
This commit is contained in:
@@ -10,6 +10,7 @@ import '@/assets/global.css'
|
||||
import { useGlobalWebSocket } from './utils/useGlobalWebSocket';
|
||||
import DataVVue3 from '@kjgl77/datav-vue3';
|
||||
import '@kjgl77/datav-vue3/dist/style.css';
|
||||
import mitt from 'mitt';
|
||||
|
||||
|
||||
const app = createApp(App)
|
||||
@@ -74,4 +75,7 @@ onBeforeUnmount(() => {
|
||||
window.removeEventListener('resize', updateDimensions);
|
||||
});
|
||||
|
||||
const eventBus = mitt();
|
||||
app.config.globalProperties.$eventBus = eventBus;
|
||||
|
||||
app.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user