You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by pe...@apache.org on 2021/10/20 09:30:38 UTC

[incubator-linkis-website] 02/24: FIX: 调整路由以及高亮显示

This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch add-docs
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git

commit c5f5a2079603acf4e7a49360b8ef067d3347bbc0
Author: lucaszhu <lu...@webank.com>
AuthorDate: Tue Oct 12 10:16:42 2021 +0800

    FIX: 调整路由以及高亮显示
---
 src/pages/docs/index.vue |  7 ++++++-
 src/router.js            | 28 +++++++++++-----------------
 2 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/src/pages/docs/index.vue b/src/pages/docs/index.vue
index 735465b..fa3d5f0 100644
--- a/src/pages/docs/index.vue
+++ b/src/pages/docs/index.vue
@@ -13,6 +13,7 @@
     </div>
 </template>
 <style lang="less">
+    @import url('/src/style/variable.less');
     .reading-area {
         display: flex;
         padding: 60px 0;
@@ -32,6 +33,10 @@
                 display: block;
                 padding: 5px 18px;
                 color: #4A4A4A;
+                &:hover,
+                &.router-link-exact-active {
+                    color: @active-color;
+                }
             }
         }
     }
@@ -63,7 +68,7 @@
 
         {
             title: '用户手册',
-            link: '/docs/manual/main',
+            link: '/docs/manual/UserManual',
             children: [
                 {
                     title: '用户使用文档',
diff --git a/src/router.js b/src/router.js
index a509f8e..bf088d4 100644
--- a/src/router.js
+++ b/src/router.js
@@ -18,38 +18,32 @@ const routes = [{
     },{
       path: 'deploy/engins',
       name: 'docDeployEngins',
-      component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/deploy/engins.vue')
+      component: () => import( /* webpackChunkName: "group-doc_engins" */ './pages/docs/deploy/engins.vue')
     },{
       path: 'deploy/distributed',
       name: 'docDeployDistributed',
-      component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/deploy/distributed.vue')
+      component: () => import( /* webpackChunkName: "group-doc_distributed" */ './pages/docs/deploy/distributed.vue')
     },{
       path: 'deploy/structure',
       name: 'docDeployStructure',
-      component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/deploy/structure.vue')
+      component: () => import( /* webpackChunkName: "group-doc_structure" */ './pages/docs/deploy/structure.vue')
     },
-
-    // {
-    //   path: 'manual',
-    //   name: '',
-    //   component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/manual/main.vue')
-    // },
     {
       path: 'manual/UserManual',
-      name: '',
-      component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/manual/UserManual.vue')
+      name: 'manualUserManual',
+      component: () => import( /* webpackChunkName: "group-doc_UserManual" */ './pages/docs/manual/UserManual.vue')
     },{
       path: 'manual/HowToUse',
-      name: '',
-      component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/manual/HowToUse.vue')
+      name: 'manual/HowToUse',
+      component: () => import( /* webpackChunkName: "group-doc_HowToUse" */ './pages/docs/manual/HowToUse.vue')
     },{
       path: 'manual/ConsoleUserManual',
-      name: '',
-      component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/manual/ConsoleUserManual.vue')
+      name: 'manualConsoleUserManual',
+      component: () => import( /* webpackChunkName: "group-doc_ConsoleUserManual" */ './pages/docs/manual/ConsoleUserManual.vue')
     },{
         path: 'manual/CliManual',
-        name: '',
-        component: () => import( /* webpackChunkName: "group-doc_linkis" */ './pages/docs/manual/CliManual.vue')
+        name: 'manualCliManual',
+        component: () => import( /* webpackChunkName: "group-doc_CliManual" */ './pages/docs/manual/CliManual.vue')
       }]
   },
   {

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org