tengmingxue 3 years ago
parent
commit
ae70ed850b
2 changed files with 5 additions and 5 deletions
  1. 2 2
      src/layout/components/Header/index.vue
  2. 3 3
      src/router/router.config.js

+ 2 - 2
src/layout/components/Header/index.vue

@@ -230,7 +230,7 @@ export default {
         this.$router.push(jumpRouter)
       }
       else{
-        this.$router.push('/' + event + '/' + event);
+        this.$router.push('/' + event);
       }
       this.defaultActiveIndex = event
       this.$store.dispatch('permission/changeSys', event)
@@ -239,7 +239,7 @@ export default {
       })
     },
     handleMenu(menuId,pathId){
-      this.$router.push('/' + pathId + '/' + pathId);
+      this.$router.push('/' + pathId);
       this.defaultActiveIndex = menuId
       this.$store.dispatch('permission/changeSys', menuId)
       this.$store.dispatch('common/setCurWidget', {

+ 3 - 3
src/router/router.config.js

@@ -43,7 +43,7 @@ export const sysMenu = [
         menuName: '公司概述',
         children:[
             {
-                path: '/companyProfile',
+                path: '',
                 pathId: 'companyProfile',
                 type: 'sys',
                 component: Layout,
@@ -61,7 +61,7 @@ export const sysMenu = [
                 }]
             },
             {
-                path: '/organization',
+                path: '',
                 pathId: 'organization',
                 type: 'sys',
                 component: Layout,
@@ -80,7 +80,7 @@ export const sysMenu = [
                 ]
             },
             {
-                path: '/developmentHistory',
+                path: '',
                 pathId: 'developmentHistory',
                 type: 'sys',
                 component: Layout,