zhoujump пре 3 дана
родитељ
комит
c40ddf6ab3
1 измењених фајлова са 61 додато и 41 уклоњено
  1. 61 41
      src/router/index.js

+ 61 - 41
src/router/index.js

@@ -368,44 +368,74 @@ export const constantRoutes = [
         ]
       },
       {
-        path: 'share&utm',
-        component: () => import('@/views/shareUtm/index'),
-        name: 'shareUtm',
+        path: 'share',
+        component: () => import('@/views/shareUtm/share'),
+        name: 'share',
         meta: {
-          title: '分享与追踪',
-          icon: 'el-icon-data-line',
-          roles: 'share&utm'
-        },
-        redirect: '/shareutm/share',
-        children: [
-          {
-            path: 'share',
-            component: () => import('@/views/shareUtm/share'),
-            name: 'share',
-            meta: {
-              title: '分享中心',
-              icon: 'el-icon-share',
-              roles: 'share&utm.share'
-            }
-          },
-          {
-            path: 'utm',
-            component: () => import('@/views/shareUtm/utm'),
-            name: 'utm',
-            meta: {
-              title: 'UTM中心',
-              icon: 'el-icon-link',
-              roles: 'share&utm.utm'
-            }
-          }
-        ]
+          title: '分享中心',
+          icon: 'el-icon-share',
+          roles: 'share&utm.share'
+        }
+      },
+      {
+        path: 'utm',
+        component: () => import('@/views/shareUtm/utm'),
+        name: 'utm',
+        meta: {
+          title: 'UTM中心',
+          icon: 'el-icon-link',
+          roles: 'share&utm.utm'
+        }
+      },
+      // {
+      //   path: 'share&utm',
+      //   component: () => import('@/views/shareUtm/index'),
+      //   name: 'shareUtm',
+      //   meta: {
+      //     title: '分享与追踪',
+      //     icon: 'el-icon-data-line',
+      //     roles: 'share&utm'
+      //   },
+      //   redirect: '/shareutm/share',
+      //   children: [
+      //     {
+      //       path: 'share',
+      //       component: () => import('@/views/shareUtm/share'),
+      //       name: 'share',
+      //       meta: {
+      //         title: '分享中心',
+      //         icon: 'el-icon-share',
+      //         roles: 'share&utm.share'
+      //       }
+      //     },
+      //     {
+      //       path: 'utm',
+      //       component: () => import('@/views/shareUtm/utm'),
+      //       name: 'utm',
+      //       meta: {
+      //         title: 'UTM中心',
+      //         icon: 'el-icon-link',
+      //         roles: 'share&utm.utm'
+      //       }
+      //     }
+      //   ]
+      // },
+      {
+        path: 'inviteRebate',
+        component: () => import('@/views/inviteRebate/index'),
+        name: 'inviteRebate',
+        meta: {
+          title: '邀请有奖',
+          icon: 'el-icon-money',
+          roles: 'inviteRebate'
+        }
       },
       {
         path: 'setting',
         component: () => import('@/views/setting/index'),
         name: 'setting',
         meta: {
-          title: '全局信息',
+          title: '系统设置',
           icon: 'el-icon-setting',
           roles: 'setting'
         },
@@ -477,16 +507,6 @@ export const constantRoutes = [
             }
           },
           {
-            path: 'inviteRebate',
-            component: () => import('@/views/inviteRebate/index'),
-            name: 'inviteRebate',
-            meta: {
-              title: '邀请与返佣',
-              icon: 'el-icon-money',
-              roles: 'inviteRebate'
-            }
-          },
-          {
             path: 'wallet',
             component: () => import('@/views/wallet/index'),
             name: 'wallet',