From b62c9209e030bb269538fdf8cf13f70a33ed547c Mon Sep 17 00:00:00 2001 From: spllzh <28668817@qq.com> Date: Sat, 9 Aug 2025 20:57:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=87=E9=A2=98=E5=92=8C?= =?UTF-8?q?=E5=81=9A=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Breadcrumb/index.vue | 2 +- src/router/index.js | 14 +++++++------- src/settings.js | 2 +- src/utils/get-page-title.js | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue index 29f9a04..e65a60d 100644 --- a/src/components/Breadcrumb/index.vue +++ b/src/components/Breadcrumb/index.vue @@ -33,7 +33,7 @@ export default { const first = matched[0] if (!this.isDashboard(first)) { - matched = [{ path: '/dashboard', meta: { title: 'Dashboard' }}].concat(matched) + matched = [{ path: '/dashboard', meta: { title: '首页' }}].concat(matched) } this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false) diff --git a/src/router/index.js b/src/router/index.js index 13459e9..6ea31fa 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -26,9 +26,9 @@ import Layout from '@/layout' */ /** - * constantRoutes - * a base page that does not have permission requirements - * all roles can be accessed + * + 静态路由(constantRoutes): 菜单内容是前端写死 + 动态路由: 菜单内容是动态获取 */ export const constantRoutes = [ { @@ -51,7 +51,7 @@ export const constantRoutes = [ path: 'dashboard', name: 'Dashboard', component: () => import('@/views/dashboard/index'), - meta: { title: 'Dashboard', icon: 'dashboard' } + meta: { title: '首页', icon: 'dashboard' } }] }, @@ -60,19 +60,19 @@ export const constantRoutes = [ component: Layout, redirect: '/example/table', name: 'Example', - meta: { title: 'Example', icon: 'el-icon-s-help' }, + meta: { title: '案例', icon: 'el-icon-s-help' }, children: [ { path: 'table', name: 'Table', component: () => import('@/views/table/index'), - meta: { title: 'Table', icon: 'table' } + meta: { title: '表格', icon: 'table' } }, { path: 'tree', name: 'Tree', component: () => import('@/views/tree/index'), - meta: { title: 'Tree', icon: 'tree' } + meta: { title: '树状表格', icon: 'el-icon-share' } } ] }, diff --git a/src/settings.js b/src/settings.js index ae3c494..8fe423d 100644 --- a/src/settings.js +++ b/src/settings.js @@ -1,6 +1,6 @@ module.exports = { - title: 'Vue Admin Template', + title: '荣景AI智能平台', /** * @type {boolean} true | false diff --git a/src/utils/get-page-title.js b/src/utils/get-page-title.js index a6de99d..37f0d46 100644 --- a/src/utils/get-page-title.js +++ b/src/utils/get-page-title.js @@ -4,7 +4,7 @@ const title = defaultSettings.title || 'Vue Admin Template' export default function getPageTitle(pageTitle) { if (pageTitle) { - return `${pageTitle} - ${title}` + return ` ${title}-${pageTitle}` } return `${title}` }