From ec4906f4419483864ba2e9fb4b80747c1fa7fca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 4 Jul 2025 12:06:40 +0800 Subject: [PATCH] feat: update layout configuration to use naive-ui/AppLayout --- src/App.vue | 8 +- src/layouts/naive-ui/AppLayout.vue | 204 +++++++++++++++++++++++++++++ vite.config.plugins.ts | 3 +- 3 files changed, 211 insertions(+), 4 deletions(-) create mode 100644 src/layouts/naive-ui/AppLayout.vue 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 关闭 }),