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.
34 lines
938 B
34 lines
938 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 { initGlobalConfig } from "@ease-forge/shared";
|
|
import { initGlobalConfigWithRuntime } from "@ease-forge/runtime";
|
|
import System from '@/runtime/System'
|
|
|
|
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'
|
|
|
|
initGlobalConfig();
|
|
initGlobalConfigWithRuntime();
|
|
|
|
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)
|
|
|
|
app.use(router)
|
|
app.use(webIndex)
|
|
|
|
app.mount('#app')
|
|
|