fix: 优化左侧菜单和header逻辑
This commit is contained in:
@@ -1,5 +1,36 @@
|
||||
import i18n from "../i18n";
|
||||
|
||||
export const staticMenus = {
|
||||
settings: {
|
||||
title: i18n.t('overall.config'),
|
||||
menu: [
|
||||
{route: '/account', name: i18n.t('config.account.account')},
|
||||
{route: '/promServer', name: i18n.t('config.promServer.promServerList')},
|
||||
{route: '/dc', name: i18n.t('config.dc.dc')},
|
||||
{route: '/model', name: i18n.t('config.model.model')},
|
||||
{route: '/mib', name: i18n.t('config.mib.mib')},
|
||||
{route: '/system', name: i18n.t('config.system.system')},
|
||||
{route: '/terminallog', name: i18n.t('config.terminallog.terminallog')},
|
||||
{route: '/operationlog', name: i18n.t('config.operationlog.operationlog')},
|
||||
],
|
||||
},
|
||||
alerts: {
|
||||
title: i18n.t('alert.alert'),
|
||||
menu: [
|
||||
{route: '/alertList', name: i18n.t('alert.alertList')},
|
||||
{route: '/alertConfig', name: i18n.t('alert.alertConfig')},
|
||||
],
|
||||
},
|
||||
dashboards: {
|
||||
title: i18n.t('dashboard.title'),
|
||||
menu: [
|
||||
{route: '/overview', name: i18n.t('dashboard.overview.title')},
|
||||
{route: '/panel', name: i18n.t('dashboard.panel.title')},
|
||||
{route: '/explore', name: i18n.t('dashboard.metricPreview.title')},
|
||||
],
|
||||
},
|
||||
};
|
||||
|
||||
export const promServer = {
|
||||
typeData: [
|
||||
{value: 1, label: 'Global'},
|
||||
|
||||
Reference in New Issue
Block a user