diff --git a/src/App.vue b/src/App.vue index b642122..8ccdad5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,9 +15,11 @@ const themeConfig = computed(() => { diff --git a/src/layouts/naive-ui/AppLayout.vue b/src/layouts/naive-ui/AppLayout.vue new file mode 100644 index 0000000..f94baaf --- /dev/null +++ b/src/layouts/naive-ui/AppLayout.vue @@ -0,0 +1,204 @@ + + + diff --git a/vite.config.plugins.ts b/vite.config.plugins.ts index ba07188..03679b9 100644 --- a/vite.config.plugins.ts +++ b/vite.config.plugins.ts @@ -66,7 +66,8 @@ export function Plugins() { // https://github.com/dishait/vite-plugin-vue-meta-layouts MetaLayouts({ - defaultLayout: 'sakai-vue/AppLayout', + // defaultLayout: 'sakai-vue/AppLayout', + defaultLayout: 'naive-ui/AppLayout', skipTopLevelRouteLayout: false, // 打开修复 https://github.com/JohnCampionJr/vite-plugin-vue-layouts/issues/134,默认为 false 关闭 }),