Przeglądaj źródła

提交配置文件

Lijy 1 rok temu
rodzic
commit
e7b225a161

+ 1 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/package-lock.json

@@ -8,6 +8,7 @@
       "name": "customerbuler-crm",
       "version": "0.0.0",
       "dependencies": {
+        "@element-plus/icons-vue": "^2.3.1",
         "axios": "^1.6.7",
         "echarts": "^5.5.0",
         "element-plus": "^2.5.6",

+ 1 - 0
fhKeeper/formulahousekeeper/customerBuler-crm/package.json

@@ -10,6 +10,7 @@
     "preview": "vite preview"
   },
   "dependencies": {
+    "@element-plus/icons-vue": "^2.3.1",
     "axios": "^1.6.7",
     "echarts": "^5.5.0",
     "element-plus": "^2.5.6",

+ 6 - 1
fhKeeper/formulahousekeeper/customerBuler-crm/src/main.ts

@@ -1,15 +1,20 @@
 import { createApp } from 'vue'
 import { createPinia } from 'pinia'
 import ElementPlus from 'element-plus'
+import "./TailWindCss/index.css";
 import 'element-plus/dist/index.css'
+import * as ElementPlusIconsVue from '@element-plus/icons-vue'
 import App from './App.vue'
 import router from './router/index'
 import "./styles.css"
-import "./TailWindCss/index.css";
 import * as echarts from 'echarts';
 
 const app = createApp(App)
 
+for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
+  app.component(key, component)
+}
+
 app.config.globalProperties.$echarts = echarts;
 app
   .use(ElementPlus)