From 57c15d6b4d47f6f38abd583e9296976a075317d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Thu, 18 Aug 2022 12:53:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 1 + static/app.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index e78673bc6..f909f3083 100644 --- a/index.html +++ b/index.html @@ -19,6 +19,7 @@ + diff --git a/static/app.js b/static/app.js index 47d871162..f04becc7b 100644 --- a/static/app.js +++ b/static/app.js @@ -81,8 +81,7 @@ const app = Vue.createApp({}); // 定义全局缓存,加载字体组件 - app.cache = {loadOpt: options, loadVue: loadVue}; - app.cache.icons = await loadVue("/static/plugs/core/vue.element.icons.js"); + app.cache = {loadOpt: options, loadVue: loadVue, icons: ElementPlusIconsVue}; for (let i in app.cache.icons) app.component(i, app.cache.icons[i]); // 注册 getApp 获取应用