|
|
@@ -37,6 +37,10 @@ import configRouter from '@/router/modules/config'
|
|
|
* all roles can be accessed
|
|
|
*/
|
|
|
export const constantRoutes = [
|
|
|
+ {
|
|
|
+ path: '/',
|
|
|
+ redirect: '/login'
|
|
|
+ },
|
|
|
{
|
|
|
path: '/redirect',
|
|
|
component: Layout,
|
|
|
@@ -239,9 +243,9 @@ export const constantRoutes = [
|
|
|
hidden: true
|
|
|
},
|
|
|
{
|
|
|
- path: '/',
|
|
|
+ path: '/dashboard',
|
|
|
component: Layout,
|
|
|
- redirect: '/dashboard',
|
|
|
+ redirect: '/dashboard/index',
|
|
|
children: [
|
|
|
{
|
|
|
path: '/dashboard/index',
|
|
|
@@ -318,27 +322,27 @@ export const asyncRoutes = [
|
|
|
path: 'location',
|
|
|
component: () => import('@/views/ad/index'),
|
|
|
name: 'ad-location',
|
|
|
- meta: { title: 'adLocation', icon: 'user', noCache: true }
|
|
|
+ meta: { title: 'metaAdLocation', icon: 'user', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'list/:ID(\\w+)',
|
|
|
component: () => import('@/views/ad/list'),
|
|
|
name: 'ad-list',
|
|
|
- meta: { title: 'adList', noCache: true, activeMenu: '/ad/location' },
|
|
|
+ meta: { title: 'metaAdList', noCache: true, activeMenu: '/ad/location' },
|
|
|
hidden: true
|
|
|
},
|
|
|
{
|
|
|
path: 'edit/:ID(\\w+)',
|
|
|
component: () => import('@/views/ad/edit'),
|
|
|
name: 'ad-edit',
|
|
|
- meta: { title: 'adEdit', noCache: true, activeMenu: '/ad/location' },
|
|
|
+ meta: { title: 'metaAdEdit', noCache: true, activeMenu: '/ad/location' },
|
|
|
hidden: true
|
|
|
},
|
|
|
{
|
|
|
path: 'add',
|
|
|
component: () => import('@/views/ad/edit'),
|
|
|
name: 'ad-add',
|
|
|
- meta: { title: 'adAdd', noCache: true, activeMenu: '/ad/location' },
|
|
|
+ meta: { title: 'metaAdAdd', noCache: true, activeMenu: '/ad/location' },
|
|
|
hidden: true
|
|
|
}
|
|
|
]
|
|
|
@@ -353,31 +357,31 @@ export const asyncRoutes = [
|
|
|
path: 'admin-login',
|
|
|
component: () => import('@/views/log/admin-login'),
|
|
|
name: 'admin-login',
|
|
|
- meta: { title: 'admin-login', icon: 'user', noCache: true }
|
|
|
+ meta: { title: 'metaAdminLogin', icon: 'user', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'user-login',
|
|
|
component: () => import('@/views/log/user-login'),
|
|
|
name: 'user-login',
|
|
|
- meta: { title: 'user-login', icon: 'user', noCache: true }
|
|
|
+ meta: { title: 'metaUserLogin', icon: 'user', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'admin-handle',
|
|
|
component: () => import('@/views/log/admin-handle'),
|
|
|
name: 'admin-handle',
|
|
|
- meta: { title: 'admin-handle', icon: 'user', noCache: true }
|
|
|
+ meta: { title: 'metaAdminHandle', icon: 'user', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'user-handle',
|
|
|
component: () => import('@/views/log/user-handle'),
|
|
|
name: 'user-handle',
|
|
|
- meta: { title: 'user-handle', icon: 'user', noCache: true }
|
|
|
+ meta: { title: 'metaUserHandle', icon: 'user', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'system',
|
|
|
component: () => import('@/views/log/system'),
|
|
|
name: 'system',
|
|
|
- meta: { title: 'system', icon: 'user', noCache: true }
|
|
|
+ meta: { title: 'metaSystemLog', icon: 'user', noCache: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
@@ -397,20 +401,20 @@ export const asyncRoutes = [
|
|
|
path: 'index',
|
|
|
component: () => import('@/views/article/index'),
|
|
|
name: 'index',
|
|
|
- meta: { title: 'index', icon: 'user', noCache: true }
|
|
|
+ meta: { title: 'metaArticleIndex', icon: 'user', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'edit/:ID(\\w+)',
|
|
|
component: () => import('@/views/article/edit'),
|
|
|
name: 'edit',
|
|
|
- meta: { title: 'edit', noCache: true },
|
|
|
+ meta: { title: 'metaArticleEdit', noCache: true },
|
|
|
hidden: true
|
|
|
},
|
|
|
{
|
|
|
path: 'add',
|
|
|
component: () => import('@/views/article/edit'),
|
|
|
name: 'add',
|
|
|
- meta: { title: 'edit', noCache: true },
|
|
|
+ meta: { title: 'metaArticleAdd', noCache: true },
|
|
|
hidden: true
|
|
|
}
|
|
|
]
|
|
|
@@ -425,7 +429,7 @@ export const asyncRoutes = [
|
|
|
path: 'export',
|
|
|
component: () => import('@/views/file/export'),
|
|
|
name: 'export',
|
|
|
- meta: { title: 'export', noCache: true }
|
|
|
+ meta: { title: 'metaFileExport', noCache: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
@@ -439,55 +443,55 @@ export const asyncRoutes = [
|
|
|
path: 'period',
|
|
|
component: () => import('@/views/bonus/period'),
|
|
|
name: 'period',
|
|
|
- meta: { title: 'period', noCache: true }
|
|
|
+ meta: { title: 'metaPeriod', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'balance-list',
|
|
|
component: () => import('@/views/bonus/balance-list'),
|
|
|
name: 'balance-list',
|
|
|
- meta: { title: 'balance-list', noCache: true }
|
|
|
+ meta: { title: 'metaBalanceList', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'other-period-bonus',
|
|
|
component: () => import('@/views/bonus/other-period-bonus'),
|
|
|
name: 'other-period-bonus',
|
|
|
- meta: { title: 'other-period-bonus', noCache: true }
|
|
|
+ meta: { title: 'metaOtherPeriodBonus', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'flow-bonus',
|
|
|
component: () => import('@/views/bonus/flow-bonus'),
|
|
|
name: 'flow-bonus',
|
|
|
- meta: { title: 'flow-bonus', noCache: true }
|
|
|
+ meta: { title: 'metaFlowBonus', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'user-perf',
|
|
|
component: () => import('@/views/bonus/user-perf'),
|
|
|
name: 'user-perf',
|
|
|
- meta: { title: 'user-perf', noCache: true }
|
|
|
+ meta: { title: 'metaUserPerf', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'perf-order',
|
|
|
component: () => import('@/views/bonus/perf-order'),
|
|
|
name: 'perf-order',
|
|
|
- meta: { title: 'perf-order', noCache: true }
|
|
|
+ meta: { title: 'metaPerfOrder', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'perf-period-list',
|
|
|
component: () => import('@/views/bonus/perf-period-list'),
|
|
|
name: 'perf-period-list',
|
|
|
- meta: { title: 'perf-period-list', noCache: true }
|
|
|
+ meta: { title: 'metaPerfPeriodList', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'perf-month',
|
|
|
component: () => import('@/views/bonus/perf-month'),
|
|
|
name: 'perf-month',
|
|
|
- meta: { title: 'perf-month', noCache: true }
|
|
|
+ meta: { title: 'metaPerfMonth', noCache: true }
|
|
|
},
|
|
|
{
|
|
|
path: 'perf-adjustment',
|
|
|
component: () => import('@/views/bonus/perf-adjustment'),
|
|
|
name: 'perf-adjustment',
|
|
|
- meta: { title: 'perf-adjustment', noCache: true }
|
|
|
+ meta: { title: 'metaPerfAdjustment', noCache: true }
|
|
|
}
|
|
|
]
|
|
|
},
|