From 6b1c06ff714863c7a791d8a7ac921e7ec5da8a97 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 14 五月 2024 16:00:59 +0800
Subject: [PATCH] 修改jquery引入

---
 src/main.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/src/main.js b/src/main.js
index f53ca8e..06f7e7e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -7,6 +7,18 @@
 import App from './App.vue';
 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);
 
 // elementUI Icon 娉ㄥ唽
@@ -14,6 +26,7 @@
   app.component(key, component);
 }
 
+app.component('font-awesome-icon', FontAwesomeIcon);
 app.use(createPinia());
 app.use(router);
 

--
Gitblit v1.9.3