feat: 更新 Layouts 配置,添加 pagesDirs 选项以指定页面目录
This commit is contained in:
@ -51,6 +51,7 @@ export function Plugins() {
|
|||||||
// https://github.com/JohnCampionJr/vite-plugin-vue-layouts?tab=readme-ov-file#configuration
|
// https://github.com/JohnCampionJr/vite-plugin-vue-layouts?tab=readme-ov-file#configuration
|
||||||
Layouts({
|
Layouts({
|
||||||
defaultLayout: 'default-layout',
|
defaultLayout: 'default-layout',
|
||||||
|
pagesDirs: ['src/pages'],
|
||||||
}),
|
}),
|
||||||
|
|
||||||
// https://github.com/antfu/unocss
|
// https://github.com/antfu/unocss
|
||||||
|
Reference in New Issue
Block a user