mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-04 09:10:59 +00:00
refactor(layouts): 将布局组件从layouts目录迁移到components/layouts目录
重构项目结构,将原本位于src/layouts下的所有布局相关组件迁移到src/components/layouts目录中,包括: - 主布局容器index.vue - 设置面板相关组件 - 水平菜单组件 - 快速入口组件 - 全局组件 同时更新了相关路由配置和组件引用路径,确保功能不受影响。此重构旨在使项目结构更加清晰,遵循组件化开发规范。
This commit is contained in:
@@ -24,31 +24,31 @@ export const globalComponentsConfig: GlobalComponentConfig[] = [
|
||||
{
|
||||
name: "设置面板",
|
||||
key: "settings-panel",
|
||||
component: defineAsyncComponent(() => import("@/layouts/fa-settings-panel/index.vue")),
|
||||
component: defineAsyncComponent(() => import("@/components/layouts/fa-settings-panel/index.vue")),
|
||||
enabled: true,
|
||||
},
|
||||
{
|
||||
name: "全局搜索",
|
||||
key: "global-search",
|
||||
component: defineAsyncComponent(() => import("@/layouts/fa-global-search/index.vue")),
|
||||
component: defineAsyncComponent(() => import("@/components/layouts/fa-global-search/index.vue")),
|
||||
enabled: true,
|
||||
},
|
||||
{
|
||||
name: "锁屏",
|
||||
key: "screen-lock",
|
||||
component: defineAsyncComponent(() => import("@/layouts/fa-screen-lock/index.vue")),
|
||||
component: defineAsyncComponent(() => import("@/components/layouts/fa-screen-lock/index.vue")),
|
||||
enabled: true,
|
||||
},
|
||||
{
|
||||
name: "聊天窗口",
|
||||
key: "chat-window",
|
||||
component: defineAsyncComponent(() => import("@/layouts/fa-chat-window/index.vue")),
|
||||
component: defineAsyncComponent(() => import("@/components/layouts/fa-chat-window/index.vue")),
|
||||
enabled: true,
|
||||
},
|
||||
{
|
||||
name: "礼花效果",
|
||||
key: "fireworks-effect",
|
||||
component: defineAsyncComponent(() => import("@/layouts/fa-fireworks-effect/index.vue")),
|
||||
component: defineAsyncComponent(() => import("@/components/layouts/fa-fireworks-effect/index.vue")),
|
||||
enabled: true,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user