2023-11-10 17:45:10 +08:00
|
|
|
import { createApp, defineComponent, ref, reactive } from 'vue'
|
|
|
|
|
|
|
|
import main from './main.vue'
|
|
|
|
import router from './router'
|
2023-12-14 18:29:40 +08:00
|
|
|
import { createPinia } from 'pinia'
|
2023-11-10 17:45:10 +08:00
|
|
|
import ElementPlus from 'element-plus';
|
|
|
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
|
|
|
|
|
2023-12-14 18:29:40 +08:00
|
|
|
import SliderVerify from 'slider-verify-v3'
|
|
|
|
import 'slider-verify-v3/lib/SliderVerify.css'
|
2023-11-10 17:45:10 +08:00
|
|
|
|
|
|
|
import 'element-plus/dist/index.css';
|
|
|
|
import './assets/css/global.scss';
|
2023-12-14 18:29:40 +08:00
|
|
|
import './assets/font/iconfont.css';
|
2023-11-10 17:45:10 +08:00
|
|
|
|
2023-12-14 18:29:40 +08:00
|
|
|
const pinia = createPinia()
|
|
|
|
const app = createApp(main)
|
|
|
|
|
|
|
|
app.use(pinia)
|
|
|
|
app.use(SliderVerify)
|
2023-11-10 17:45:10 +08:00
|
|
|
|
|
|
|
app.use(router)
|
|
|
|
.use(ElementPlus) // ElementPlus 全局引入
|
|
|
|
|
|
|
|
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|
|
|
app.component(key, component)
|
|
|
|
}
|
|
|
|
|
|
|
|
app.mount('#app')
|