diff --git a/vite/plugins/unocss.ts b/vite/plugins/unocss.ts index 997335afa0e07796528be3cd66a7d57d1d868b6f..8d4e012fd6c580a2f3ca5a6f0b2829a064254882 100644 --- a/vite/plugins/unocss.ts +++ b/vite/plugins/unocss.ts @@ -8,6 +8,7 @@ export default () => { shortcuts: { 'panel-title': 'pb-[5px] font-sans leading-[1.1] font-medium text-base text-[#6379bb] border-b border-b-solid border-[var(--el-border-color-light)] mb-5 mt-0' - } + }, + hmrTopLevelAwait: false, // unocss默认是true,低版本浏览器是不支持的,启动后会报错 }); };