From 1534aee0339dee8000cdd26c21797cf3ad391f7a Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期一, 06 五月 2024 17:33:23 +0800
Subject: [PATCH] 新增折线图模块功能

---
 src/main.js |   22 ++++++++++++++++------
 1 files changed, 16 insertions(+), 6 deletions(-)

diff --git a/src/main.js b/src/main.js
index 83f5882..d6c2bf4 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,11 +2,23 @@
 
 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 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 { all } from '@awesome.me/kit-KIT_CODE/icons';
+import { fas } from '@fortawesome/free-solid-svg-icons';
+// import { faTwitter, faFontAwesome } from '@fortawesome/free-brands-svg-icons'
+// import { faTwitter, faFontAwesome } from '@fortawesome/free-regular-svg-icons'
+
+/* add icons to the library */
+library.add(fas);
 
 const app = createApp(App);
 
@@ -15,10 +27,8 @@
   app.component(key, component);
 }
 
-// 楂樺痉鍦板浘鍒濆鍖�
-createMap('container');
-
+app.component('font-awesome-icon', FontAwesomeIcon);
 app.use(createPinia());
-// app.use(router)
+app.use(router);
 
 app.mount('#app');

--
Gitblit v1.9.3