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.
35 lines
1.0 KiB
35 lines
1.0 KiB
import { createApp } from 'vue' |
|
import axios from './axios'; |
|
import router from './router/'; |
|
import ElementPlus from 'element-plus' |
|
import createIcon from './icon'; |
|
import 'element-plus/dist/index.css' |
|
import DataVVue3 from '@kjgl77/datav-vue3' |
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs' |
|
import Avue from '@smallwei/avue'; |
|
import { website } from '@/config.js' |
|
import '@smallwei/avue/lib/index.css'; |
|
import draggable from '@/page/components/draggable.vue' |
|
import { loadScript } from '@/utils/utils' |
|
import error from './error'; |
|
import App from './App.vue' |
|
import './styles/common.scss' |
|
import '@/utils/es6' |
|
const app = createApp(App) |
|
window.axios = axios; |
|
window.$loadScript = loadScript; |
|
document.title = website.title |
|
createIcon(app); |
|
app.component('avue-draggable', draggable) |
|
app.config.globalProperties.$component = app.component |
|
app.config.globalProperties.$website = website; |
|
app.use(DataVVue3) |
|
app.use(error); |
|
app.use(router) |
|
app.use(ElementPlus, { |
|
locale: zhCn |
|
}) |
|
app.use(Avue, { |
|
axios |
|
}) |
|
app.mount('#app')
|
|
|