123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- import { UserLayout, BasicLayout, RouteView, BlankLayout, PageView } from '@/layouts'
- export const asyncRouterMap = [
- {
- path: '/',
- name: 'index',
- component: BasicLayout,
- meta: {
- title: '首页'
- },
- redirect: '/home',
- children: [{
- path: '/home',
- name: 'home',
- redirect: '/home',
- component: PageView,
- meta: {
- title: '首页',
- icon: 'home'
- },
- hideChildrenInMenu: true,
- children: [{
- path: '/home',
- name: 'home',
- component: () => import( '@/views/Home'),
- meta: {
- title: '首页',
- icon: 'home',
- hidden: true
- }
- },
- {
- path: '/changePwd',
- name: 'changePwd',
- component: () => import( '@/views/user/ChangePwd'),
- meta: {
- title: '修改密码',
- icon: 'home',
- hidden: true
- }
- }
- ]
- },
-
- {
- path: '/CouponCenter',
- redirect: '/CouponCenter/CreateCoupons',
- component: PageView,
- meta: {
- title: '优惠券管理',
- icon: 'shopping',
- permission: 'M_coupon_0'
- },
- children: [{
- path: '/CouponCenter/CreateCoupons',
- name: 'CouponCenter',
- component: () => import('@/views/CouponCenter/CreateCoupons.vue'),
- meta: {
- title: '创建优惠券',
- icon: 'database',
- permission: 'M_coupon_create'
- }
- }]
- },
- {
- path: '/CouponStatistics',
- redirect: '/CouponStatistics/CouponStatistics',
- component: PageView,
- meta: {
- title: '卡券统计',
- icon: 'bar-chart',
- permission: 'M_CouponStatistics_0'
- },
- children: [{
- path: '/CouponStatistics/CouponStatisticsList',
- name: 'CouponStatisticsList',
- component: () => import('@/views/CouponStatistics/CouponStatisticsList.vue'),
- meta: {
- title: '优惠券统计',
- icon: 'line-chart',
- permission: 'M_CouponStatistics_List'
- }
- }
- ]
- },
- {
- path: '/setting',
- redirect: '/setting/userList',
- component: PageView,
- meta: {
- title: '系统设置',
- icon: 'setting'
-
- },
- children: [{
- path: '/setting/dataDictionary',
- name: 'powerDD',
- component: () => import(
- '@/views/power/dataDictionary/dataDictionary.vue'),
- meta: {
- title: '数据字典管理',
- icon: 'database'
-
- }
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ]
- }
- ]
- },
- {
- path: '*',
- redirect: '/404',
- hidden: true
- }
- ]
- export const constantRouterMap = [{
- path: '/user',
- component: UserLayout,
- redirect: '/user/login',
- hidden: true,
- children: [{
- path: 'login',
- name: 'login',
- component: () => import( '@/views/user/Login')
- },
- {
- path: 'register',
- name: 'register',
- component: () => import( '@/views/user/Register')
- },
- {
- path: 'register-result',
- name: 'registerResult',
- component: () => import( '@/views/user/RegisterResult')
- },
- {
- path: 'recover',
- name: 'recover',
- component: undefined
- }
- ]
- },
- {
- path: '/404',
- component: () => import( '@/views/exception/404')
- }
- ]
|