fix(build): set meta-layouts importMode to sync
All checks were successful
CI/CD Pipeline / playwright (push) Successful in 3m44s
CI/CD Pipeline / build-and-deploy (push) Successful in 4m7s

This commit is contained in:
严浩
2025-10-25 23:25:25 +08:00
parent a1160bc394
commit 25b3658576
2 changed files with 2 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ export default [
MetaLayouts({
// defaultLayout: 'sakai-vue/AppLayout',
// defaultLayout: 'naive-ui/AppLayout',
importMode: 'sync', // 默认为自动处理SSG 时为 sync非 SSG 时为 async
defaultLayout: 'base-layout/base-layout',
skipTopLevelRouteLayout: true, // 打开修复 https://github.com/JohnCampionJr/vite-plugin-vue-layouts/issues/134默认为 false 关闭
}),