From e9938fcdbe976174412f79c2da5868faf39c4088 Mon Sep 17 00:00:00 2001 From: Fine Date: Sat, 22 Jul 2023 13:30:29 +0800 Subject: [PATCH] feat: add title --- src/layout/components/SideBar.vue | 2 +- src/router/alarm.ts | 1 + src/router/dashboard.ts | 3 +++ src/router/marketplace.ts | 1 + src/router/settings.ts | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/layout/components/SideBar.vue b/src/layout/components/SideBar.vue index 9e54bdf2..0f797a03 100644 --- a/src/layout/components/SideBar.vue +++ b/src/layout/components/SideBar.vue @@ -44,7 +44,7 @@ limitations under the License. --> - {{ m.meta && (te(menu.meta.i18nKey) ? t(menu.meta.i18nKey) : menu.meta.title) }} + {{ m.meta && (te(m.meta.i18nKey) ? t(m.meta.i18nKey) : m.meta.title) }} diff --git a/src/router/alarm.ts b/src/router/alarm.ts index dc5e19e2..f809af6f 100644 --- a/src/router/alarm.ts +++ b/src/router/alarm.ts @@ -26,6 +26,7 @@ export const routesAlarm: Array = [ icon: "spam", hasGroup: false, activate: true, + title: "Alerting", }, component: Layout, children: [ diff --git a/src/router/dashboard.ts b/src/router/dashboard.ts index 8ced30cf..8aaa0534 100644 --- a/src/router/dashboard.ts +++ b/src/router/dashboard.ts @@ -27,6 +27,7 @@ export const routesDashboard: Array = [ icon: "dashboard_customize", hasGroup: true, activate: true, + title: "Dashboards", }, children: [ { @@ -36,6 +37,7 @@ export const routesDashboard: Array = [ meta: { i18nKey: "dashboardList", activate: true, + title: "Dashboard List", }, }, { @@ -45,6 +47,7 @@ export const routesDashboard: Array = [ meta: { i18nKey: "dashboardNew", activate: true, + title: "New Dashboard", }, }, { diff --git a/src/router/marketplace.ts b/src/router/marketplace.ts index 56196d82..f71ab025 100644 --- a/src/router/marketplace.ts +++ b/src/router/marketplace.ts @@ -26,6 +26,7 @@ export const routesMarketplace: Array = [ icon: "marketplace", hasGroup: false, activate: true, + title: "Marketplace", }, component: Layout, children: [ diff --git a/src/router/settings.ts b/src/router/settings.ts index 11a78251..aa53c735 100644 --- a/src/router/settings.ts +++ b/src/router/settings.ts @@ -26,6 +26,7 @@ export const routesSettings: Array = [ icon: "settings", hasGroup: false, activate: true, + title: "Settings", }, component: Layout, children: [