1234567891011121314151617181920212223242526272829 |
- import { createApp } from 'vue'
- import App from './App.vue'
- import setupPlugins from '@/plugins'
- import 'amfe-flexible/index.js'
- // 本地SVG图标
- import 'virtual:svg-icons-register'
- // 样式
- import 'element-plus/theme-chalk/dark/css-vars.css'
- import '@/styles/index.scss'
- import 'uno.css'
- import 'animate.css'
- import mitt from 'mitt'
- const Mitt = mitt()
- const app = createApp(App)
- declare module 'vue' {
- export interface ComponentCustomProperties {
- $Bus: typeof Mitt
- }
- }
- app.config.globalProperties.$Bus = Mitt
- app.use(setupPlugins)
- app.mount('#app')
|