diff --git a/vite.config.ts b/vite.config.ts index 4733cccf..0f0d0ed8 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: {