From 48c25e01c079c45b26fd28958bf5412b29962e28 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期二, 06 五月 2025 15:23:03 +0800
Subject: [PATCH] onMounted方法执行顺序修改

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

diff --git a/src/main.ts b/src/main.ts
index 90aceba..b056fbd 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -64,6 +64,8 @@
 
 import lifecycles from '@/utils/lifecycles' // 生命周期函数
 
+import * as ElementPlusIconsVue from '@element-plus/icons-vue'
+
 // import credentialsFetch from "@/utils/fetch";
 
 const isProduction = process.env.NODE_ENV === "production";
@@ -72,6 +74,10 @@
 const setupAll = async () => {
   const app = createApp(App)
 
+  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
+    app.component(key, component)
+  }
+
   await setupI18n(app)
 
   setupStore(app)

--
Gitblit v1.9.3