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
1.1 KiB
34 lines
1.1 KiB
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 { LicenseManager, } from "ag-grid-enterprise";
|
|
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'
|
|
|
|
LicenseManager.prototype.validateLicense = () => 0;
|
|
LicenseManager.prototype.isDisplayWatermark = () => false;
|
|
|
|
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()
|
|
|