From 90675cb210f5a2afc4766e6fd091776a14397d48 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期三, 23 四月 2025 17:34:01 +0800 Subject: [PATCH] 最新版 --- src/main.ts | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main.ts b/src/main.ts index 1913600..fedcc0b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -3,12 +3,19 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' +import * as ElementPlusIconsVue from '@element-plus/icons-vue' import zhCn from 'element-plus/es/locale/lang/zh-cn' import App from './App.vue' import router from './router' import request from '@/plugin/axios/index.ts' + const app = createApp(App) +// 鍏ㄥ眬娉ㄥ唽element icon +for (const [key, component] of Object.entries(ElementPlusIconsVue)) { + app.component(key, component) +} + app.use(ElementPlus, { -- Gitblit v1.9.1