fix(build): set meta-layouts importMode to sync
This commit is contained in:
@@ -185,7 +185,7 @@ function handleClickMask() {
|
||||
<!-- Mobile Sider -->
|
||||
<template v-if="showMobileSider">
|
||||
<aside
|
||||
class="absolute left-0 top-0 h-full w-0 bg-white dark:bg-gray-800"
|
||||
class="absolute left-0 top-0 h-full bg-white dark:bg-gray-800"
|
||||
:class="[
|
||||
commonClass,
|
||||
mobileSiderClass,
|
||||
|
||||
@@ -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 关闭
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user