diff --git a/public/images/home.png b/public/images/home.png new file mode 100644 index 0000000..84a071c Binary files /dev/null and b/public/images/home.png differ diff --git a/src/api/menu/index.ts b/src/api/menu/index.ts index cdc272f..b3ac6f8 100644 --- a/src/api/menu/index.ts +++ b/src/api/menu/index.ts @@ -8,6 +8,34 @@ class MenuAPI { static getRoutes() { return new Promise((resolve) => { resolve([ + { + path: "/home", + component: "Layout", + redirect: "/home/index2", + name: "/index2", + meta: { + title: "数据总览2", + icon: "homepage", + hidden: false, + roles: ["GUEST", "ADMIN", "ADMIN6"], + alwaysShow: false, + }, + children: [ + { + path: "index2", + component: "dashboard/index2", + name: "dashboardIndex2", + meta: { + title: "模型管理", + icon: "user", + hidden: true, + roles: ["ADMIN", "GUEST"], + keepAlive: true, + alwaysShow: false, + }, + }, + ] + }, { path: "/modelMgr", component: "Layout", diff --git a/src/assets/logojd.png b/src/assets/logojd.png new file mode 100644 index 0000000..016667b Binary files /dev/null and b/src/assets/logojd.png differ diff --git a/src/layout/components/NavBar/components/NavbarRight2.vue b/src/layout/components/NavBar/components/NavbarRight2.vue new file mode 100644 index 0000000..f4b92ef --- /dev/null +++ b/src/layout/components/NavBar/components/NavbarRight2.vue @@ -0,0 +1,112 @@ + + + diff --git a/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue b/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue index 8dbc291..229832d 100644 --- a/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue +++ b/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue @@ -51,7 +51,7 @@ const handleMenuSelect = (routePath: string) => { permissionStore.setMixLeftMenus(routePath); // 获取左侧菜单集合,默认跳转到第一个菜单 const mixLeftMenus = permissionStore.mixLeftMenus; - goToFirstMenu(mixLeftMenus); + goToFirstMenu(mixLeftMenus); }; /** diff --git a/src/layout/index.vue b/src/layout/index.vue index e7cf2fe..6742776 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -1,6 +1,9 @@