From 44deb06aaa035c20e01bff9d996a29e672beda16 Mon Sep 17 00:00:00 2001 From: xingyu Date: Fri, 19 May 2023 16:06:58 +0800 Subject: [PATCH] feat: dashboard icon --- src/locales/lang/en/routes/dashboard.ts | 2 +- src/locales/lang/zh-CN/routes/dashboard.ts | 2 +- src/router/routes/modules/dashboard.ts | 8 +++++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/locales/lang/en/routes/dashboard.ts b/src/locales/lang/en/routes/dashboard.ts index 5382ae31..33b689eb 100644 --- a/src/locales/lang/en/routes/dashboard.ts +++ b/src/locales/lang/en/routes/dashboard.ts @@ -1,5 +1,5 @@ export default { - dashboard: 'Dashboard', + dashboard: 'Home', about: 'About', workbench: 'Workbench', analysis: 'Analysis' diff --git a/src/locales/lang/zh-CN/routes/dashboard.ts b/src/locales/lang/zh-CN/routes/dashboard.ts index 3a53ad61..97143af1 100644 --- a/src/locales/lang/zh-CN/routes/dashboard.ts +++ b/src/locales/lang/zh-CN/routes/dashboard.ts @@ -1,5 +1,5 @@ export default { - dashboard: 'Dashboard', + dashboard: '首页', about: '关于', workbench: '工作台', analysis: '分析页' diff --git a/src/router/routes/modules/dashboard.ts b/src/router/routes/modules/dashboard.ts index 070e2eaa..aab8090f 100644 --- a/src/router/routes/modules/dashboard.ts +++ b/src/router/routes/modules/dashboard.ts @@ -11,7 +11,7 @@ const dashboard: AppRouteModule = { redirect: '/dashboard/analysis', meta: { orderNo: 10, - icon: 'ion:grid-outline', + icon: 'ant-design:home-outlined', title: t('routes.dashboard.dashboard') }, children: [ @@ -21,7 +21,8 @@ const dashboard: AppRouteModule = { component: () => import('@/views/dashboard/analysis/index.vue'), meta: { // affix: true, - title: t('routes.dashboard.analysis') + title: t('routes.dashboard.analysis'), + icon: 'ant-design:bar-chart-outlined' } }, { @@ -29,7 +30,8 @@ const dashboard: AppRouteModule = { name: 'Workbench', component: () => import('@/views/dashboard/workbench/index.vue'), meta: { - title: t('routes.dashboard.workbench') + title: t('routes.dashboard.workbench'), + icon: 'ant-design:appstore-outlined' } } ]