From c0647a639a314cc4207e014c08a68af292af2021 Mon Sep 17 00:00:00 2001 From: pdsuwwz Date: Fri, 23 Oct 2020 13:13:10 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=88=20feat(charts)=20Update=20charts?= =?UTF-8?q?=20routes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Navigation/NavBar.vue | 2 +- src/router/routes.js | 17 +++++++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/components/Navigation/NavBar.vue b/src/components/Navigation/NavBar.vue index dde6718..6c5893b 100644 --- a/src/components/Navigation/NavBar.vue +++ b/src/components/Navigation/NavBar.vue @@ -35,7 +35,7 @@ $headerHeight: 48px; top: 0; left: 0; right: 0; - z-index: 1; + z-index: 3; box-shadow: 0 1px 4px rgba(0,21,41,.08); } .navbar-header-box { diff --git a/src/router/routes.js b/src/router/routes.js index 6fa995e..e0505fc 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -67,10 +67,19 @@ const routes = [ { path: '/charts', name: 'Charts', - component: importModule('ChartsTest/pages/index'), - meta: { - title: '可视化-图表' - } + component: LayoutBasic, + icon: 'chart-bar', + redirect: '/charts/demo', + children: [ + { + path: 'demo', + name: 'ChartsDemo', + component: importModule('ChartsTest/pages/index'), + meta: { + title: '可视化-图表-demo' + } + } + ] }, { path: '/user',