feat: add title

This commit is contained in:
Fine 2023-07-22 13:30:29 +08:00
parent 52ee7c6f45
commit e9938fcdbe
5 changed files with 7 additions and 1 deletions

View File

@ -44,7 +44,7 @@ limitations under the License. -->
<el-menu-item v-for="(m, idx) in filterMenus(menu.children)" :index="m.name" :key="idx"> <el-menu-item v-for="(m, idx) in filterMenus(menu.children)" :index="m.name" :key="idx">
<router-link class="items" :to="m.path"> <router-link class="items" :to="m.path">
<span class="title"> <span class="title">
{{ 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) }}
</span> </span>
</router-link> </router-link>
</el-menu-item> </el-menu-item>

View File

@ -26,6 +26,7 @@ export const routesAlarm: Array<RouteRecordRaw> = [
icon: "spam", icon: "spam",
hasGroup: false, hasGroup: false,
activate: true, activate: true,
title: "Alerting",
}, },
component: Layout, component: Layout,
children: [ children: [

View File

@ -27,6 +27,7 @@ export const routesDashboard: Array<RouteRecordRaw> = [
icon: "dashboard_customize", icon: "dashboard_customize",
hasGroup: true, hasGroup: true,
activate: true, activate: true,
title: "Dashboards",
}, },
children: [ children: [
{ {
@ -36,6 +37,7 @@ export const routesDashboard: Array<RouteRecordRaw> = [
meta: { meta: {
i18nKey: "dashboardList", i18nKey: "dashboardList",
activate: true, activate: true,
title: "Dashboard List",
}, },
}, },
{ {
@ -45,6 +47,7 @@ export const routesDashboard: Array<RouteRecordRaw> = [
meta: { meta: {
i18nKey: "dashboardNew", i18nKey: "dashboardNew",
activate: true, activate: true,
title: "New Dashboard",
}, },
}, },
{ {

View File

@ -26,6 +26,7 @@ export const routesMarketplace: Array<RouteRecordRaw> = [
icon: "marketplace", icon: "marketplace",
hasGroup: false, hasGroup: false,
activate: true, activate: true,
title: "Marketplace",
}, },
component: Layout, component: Layout,
children: [ children: [

View File

@ -26,6 +26,7 @@ export const routesSettings: Array<RouteRecordRaw> = [
icon: "settings", icon: "settings",
hasGroup: false, hasGroup: false,
activate: true, activate: true,
title: "Settings",
}, },
component: Layout, component: Layout,
children: [ children: [