| | |
| | | |
| | | import { createApp } from 'vue'; |
| | | import { createPinia } from 'pinia'; |
| | | import { createMap } from './utils/map/index'; |
| | | import * as ElementPlusIconsVue from '@element-plus/icons-vue'; |
| | | |
| | | import App from './App.vue'; |
| | | // import router from './router' |
| | | import router from './router'; |
| | | |
| | | import './utils/expand/expand'; |
| | | |
| | | /* import the fontawesome core */ |
| | | import { library } from '@fortawesome/fontawesome-svg-core'; |
| | | /* import font awesome icon component */ |
| | | import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'; |
| | | /* import specific icons */ |
| | | import { fas } from '@fortawesome/free-solid-svg-icons'; |
| | | |
| | | /* add icons to the library */ |
| | | library.add(fas); |
| | | |
| | | const app = createApp(App); |
| | | |
| | |
| | | app.component(key, component); |
| | | } |
| | | |
| | | // 高德地图初始化 |
| | | createMap('container'); |
| | | |
| | | app.component('font-awesome-icon', FontAwesomeIcon); |
| | | app.use(createPinia()); |
| | | // app.use(router) |
| | | app.use(router); |
| | | |
| | | app.mount('#app'); |