From dc581194eda3c8aec83a2912002b4197c85941a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Wed, 13 Sep 2023 18:32:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20:bug:=20=E4=BD=8E=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E5=86=85=E6=A0=B8`Chrome`=E6=B5=8F=E8=A7=88=E5=99=A8=EF=BC=8C?= =?UTF-8?q?=E6=89=93=E5=BC=80=E6=B5=8F=E8=A7=88=E5=99=A8=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=A9=BA=E7=99=BD=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Former-commit-id: c89909234ebee431f7577918a125e34652bb0152 --- vite.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index b70b68d8..ca0a3988 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -58,7 +58,9 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => { }, plugins: [ vue(), - UnoCSS({}), + UnoCSS({ + hmrTopLevelAwait: false, + }), AutoImport({ imports: ["vue", "@vueuse/core"], // 自动导入 Vue 相关函数,如:ref, reactive, toRef 等 eslintrc: {