Explorar el Código

!10 update vite/plugins/unocss.ts.
Merge pull request !10 from running0503/N/A

疯狂的狮子Li hace 1 año
padre
commit
226e0f3494
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      vite/plugins/unocss.ts

+ 2 - 1
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,低版本浏览器是不支持的,启动后会报错
   });
 };