You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
968 B

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import * as webIndex from '@/components/webindex'
import { directive, menusEvent, Vue3Menus } from 'vue3-menus'
import ElementPlus from 'element-plus'
import { globalConfig } from '@/config.ts'
import System from '@/runtime/System'
import { getCurrentUser } from '@/currentUser.ts'
import 'ag-grid-community/styles/ag-grid.css'
import 'ag-grid-community/styles/ag-theme-alpine.css'
import 'element-plus/dist/index.css'
import './main.less'
async function main() {
const app = createApp(App)
app.use(createPinia())
app.use(ElementPlus)
app.component('vue3-menus', Vue3Menus)
app.directive('menus', directive)
app.config.globalProperties.$menusEvent = menusEvent
window['system'] = new System(app, router)
app.use(router)
app.use(webIndex)
app.mount('#app')
globalConfig()
// await getCurrentUser()
}
main().finally()