refactor(layouts): 将布局组件从layouts目录迁移到components/layouts目录

重构项目结构,将原本位于src/layouts下的所有布局相关组件迁移到src/components/layouts目录中,包括:
- 主布局容器index.vue
- 设置面板相关组件
- 水平菜单组件
- 快速入口组件
- 全局组件

同时更新了相关路由配置和组件引用路径,确保功能不受影响。此重构旨在使项目结构更加清晰,遵循组件化开发规范。
This commit is contained in:
zhangtao
2026-05-11 09:41:30 +08:00
parent 5a561a7374
commit 1ac2362945
42 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ export class ComponentLoader {
}
loadLayout(): () => Promise<any> {
return () => import("@/layouts/index.vue");
return () => import("@/components/layouts/index.vue");
}
loadIframe(): () => Promise<any> {
+2 -2
View File
@@ -95,7 +95,7 @@ export const ROUTE_PATH_LOGIN_ALT = "/auth/login";
* 主框架布局:新版 art 体系(`src/layouts/index.vue` + `src/layouts/fa-*` 组件)。
* 旧版 Left/Top/Mix 壳子仍在 `@/layouts/index.vue`,路由不再默认使用。
*/
export const Layout = () => import("@/layouts/index.vue");
export const Layout = () => import("@/components/layouts/index.vue");
/** iframe 内跳页面:内联组件(无需 views/outside/Iframe.vue) */
const IframeView = defineComponent({
@@ -458,7 +458,7 @@ export const staticRoutes: AppRouteRecordRaw[] = [
},
{
path: "/outside",
component: () => import("@/layouts/index.vue"),
component: () => import("@/components/layouts/index.vue"),
name: "Outside",
meta: { title: "menus.outside.title" },
children: [