From 7757d96f3444c283a21021324a7abcb22a29ee2e Mon Sep 17 00:00:00 2001 From: running0503 <xiangdeshan_120@sina.com> Date: 星期三, 31 五月 2023 15:27:16 +0800 Subject: [PATCH] update vite/plugins/unocss.ts. 因低浏览器不支持 top-level await,会报 __uno.css:9 Uncaught SyntaxError: Unexpected reserved word --- src/plugins/svgicon.ts | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/plugins/svgicon.ts b/src/plugins/svgicon.ts index 2975b0e..8c68609 100644 --- a/src/plugins/svgicon.ts +++ b/src/plugins/svgicon.ts @@ -2,9 +2,9 @@ import { App } from 'vue'; export default { - install: (app: App) => { - for (const [key, component] of Object.entries(ElementPlusIconsVue)) { - app.component(key, component); - } - } + install: (app: App) => { + for (const [key, component] of Object.entries(ElementPlusIconsVue)) { + app.component(key, component); + } + } }; -- Gitblit v1.9.3