From 8b839bf48739da6bde448e7f64a1adcf26c4cb5e Mon Sep 17 00:00:00 2001 From: medcl Date: Sun, 15 Mar 2020 11:38:23 +0800 Subject: [PATCH] add new menu --- app/web/config/router.config.js | 14 +++++++++++++- app/web/src/locales/zh-CN.js | 2 ++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/app/web/config/router.config.js b/app/web/config/router.config.js index 3c2d537d..1498f9e7 100644 --- a/app/web/config/router.config.js +++ b/app/web/config/router.config.js @@ -46,6 +46,18 @@ export default [ }, ], }, + { + path: '/agents', + name: 'agents', + icon: 'dashboard', + routes: [ + { + path: '/agents/overview', + name: 'overview', + component: './helloworld', + } + ], + } ], - }, + } ]; diff --git a/app/web/src/locales/zh-CN.js b/app/web/src/locales/zh-CN.js index 4d30a109..5b66534d 100644 --- a/app/web/src/locales/zh-CN.js +++ b/app/web/src/locales/zh-CN.js @@ -72,6 +72,8 @@ export default { 'menu.dashboard.notification': '告警统计', 'menu.dashboard.logging': '日志数据统计', 'menu.dashboard.gateway': '采集网关统计', + 'menu.agents': '终端管理', + 'menu.agents.overview': '终端统计', 'menu.form': '表单页', 'menu.form.basicform': '基础表单', 'menu.form.stepform': '分步表单',