diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index c13e5e9..e58ebf6 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -34,7 +34,7 @@ function getBreadcrumb() { } // 判断是否为首页 if (!isDashboard(matched[0])) { - matched = [{ path: "/index", meta: { title: "首页" } }].concat(matched) + matched = [{ path: "/index", meta: { title: "门户" } }].concat(matched) } levelList.value = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) } @@ -84,15 +84,24 @@ getBreadcrumb() \ No newline at end of file diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 974d25a..86fe0e2 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -7,7 +7,7 @@ @toggleClick="toggleSideBar" /> diff --git a/src/router/index.js b/src/router/index.js index 6d6da79..56391ff 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -79,7 +79,7 @@ export const constantRoutes = [ path: "/index", component: () => import("@/views/index"), name: "Index", - meta: { title: "首页", icon: "dashboard", affix: true }, + meta: { title: "门户", icon: "dashboard", affix: true }, }, {