text: import Vue from 'vue';
  import Router from 'vue-router';
  
  Vue.use(Router);
  
  export default new Router({
      mode:'history',
      routes: [
          {
              path: '/',
              redirect: '/dashboard'
          },
          {
              path: '/',
              component: () => import(/* webpackChunkName: "home" */ '../components/common/Home.vue'),
              meta: { title: '自述文件' },
              children: [
                  {
                      path: '/dashboard',
                      component: () => import(/* webpackChunkName: "dashboard" */ '../components/page/Dashboard.vue'),
                      meta: { title: '系统首页',permission: false }
                  },
                  // 基础信息管理
                  // {
                  //     path:'/room_type',
                  //     component: () => import('../components/page/BasicInfoManage/room_type.vue'),
                  //      meta: { title: '客房类型管理',permission: true ,auth_admin:true}
                  // },
                  // {
                  //     path:'/floor_info',
                  //     component: () => import('../components/page/BasicInfoManage/floor_info.vue'),
                  //      meta: { title: '楼层管理', permission: true ,auth_admin:true}
                  // },
                  // {
                  //     path:'/goods_type',
                  //     component: () => import('../components/page/BasicInfoManage/goods_type.vue'),
                  //      meta: { title: '商品类别管理' ,permission: true ,auth_admin:true}
                  // },
                  // {
                  //     path:'/goods_info',
                  //     component: () => import('../components/page/BasicInfoManage/goods_info.vue'),
                  //      meta: { title: '商品信息管理' ,permission: true ,auth_admin:true}
                  // },
                  // {
                  //     path:'/member_info',
                  //     component: () => import('../components/page/BasicInfoManage/member_info.vue'),
                  //      meta: { title: '会员管理',permission: true ,auth_admin:true }
                  // },
                  {
                    path:'/quality',
                    component: () => import('../components/page/shProduct/BasicInfoManage/quality.vue'),
                     meta: { title: '商品管理',permission: true ,auth_admin:true}
                  },
                  
                  // 地址管理
                  {
                    path:'/address',
                    component: () => import('../components/page/shProduct/address/address.vue'),
                     meta: { title: '地址管理',permission: true ,auth_admin:true}
                  },
  
                  //订单管理
                  {
                    path:'/order',
                    component: () => import('../components/page/shProduct/order/order.vue'),
                     meta: { title: '订单管理',permission: true ,auth_admin:true}
                  },
  
                  //购物车
                  {
                    path:'/cart',
                    component: () => import('../components/page/shProduct/cart/cart.vue'),
                     meta: { title: '购物车',permission: true ,auth_admin:true}
                  },
  
                  //商品留言/评论
                   {
                    path:'/comment',
                    component: () => import('../components/page/shProduct/comment/comment.vue'),
                     meta: { title: '商品留言评论',permission: true ,auth_admin:true}
                  },
  
                  // 系统管理
                  {
                    path:'/user',
                    component: () => import('../components/page/shProduct/systemManage/user.vue'),
                     meta: { title: '用户信息维护',permission: true ,auth_admin:true }
                  },
                  
                  // // 客房管理
                  // {
                  //   path:'/room_info',
                  //   component: () => import('../components/page/RoomManage/room_info.vue'),
                  //    meta: { title: '客房管理' ,permission: true ,auth_admin:true}
                  // },
                  
                  // // 房客管理
                  // {
                  //   path:'/order_info',
                  //   component: () => import('../components/page/tenantManage/order_info.vue'),
                  //    meta: { title: '客房预定',permission: true ,auth_admin:true ,auth_font:true }
                  // },
                  // {
                  //   path:'/checkin_info',
                  //   component: () => import('../components/page/tenantManage/checkin_info.vue'),
                  //    meta: { title: '客房入住',permission: true ,auth_admin:true ,auth_font:true }
                  // },
                  // {
                  //   path:'/replace-room',
                  //   component: () => import('../components/page/tenantManage/replace-room.vue'),
                  //    meta: { title: '换房' ,permission: true ,auth_admin:true ,auth_font:true}
                  // },
                  // {
                  //   path:'/bill_info',
                  //   component: () => import('../components/page/tenantManage/bill_info.vue'),
                  //    meta: { title: '退房结帐',permission: true ,auth_admin:true ,auth_font:true}
                  // },
  
                  // //消费管理
                  // {
                  //   path:'/cost_info',
                  //   component: () => import('../components/page/costInfoManage/cost_info.vue'),
                  //    meta: { title: '消费管理',permission: true ,auth_admin:true ,auth_font:true }
                  // },
  
                  // // // 报表管理
                  // {
                  //   path:'/order_info_report',
                  //   component: () => import('../components/page/reportManage/order_info_report.vue'),
                  //    meta: { title: '预定客人报表',permission: true ,auth_admin:true ,auth_jinLi:true}
                  // },
                  // {
                  //   path:'/checkin_info_report',
                  //   component: () => import('../components/page/reportManage/checkin_info_report.vue'),
                  //    meta: { title: '入住客人报表' ,permission: true ,auth_admin:true ,auth_jinLi:true}
                  // },
                  
                  // {
                  //   path:'/today_bill_info',
                  //   component: () => import('../components/page/reportManage/today_bill_info.vue'),
                  //    meta: { title: '当日消费人数报表' ,permission: true ,auth_admin:true ,auth_jinLi:true }
                  // },
                  // {
                  //   path:'/today_leavecustomers',
                  //   component: () => import('../components/page/reportManage/today_leavecustomers.vue'),
                  //    meta: { title: '当日离店人数报表',permission: true ,auth_admin:true ,auth_jinLi:true}
                  // },
  
  
                  // // 系统管理
                  // {
                  //   path:'/user_info',
                  //   component: () => import('../components/page/systemManage/user_info.vue'),
                  //    meta: { title: '用户信息维护',permission: true ,auth_admin:true }
                  // },
                  // {
                  //   path:'/log_info',
                  //   component: () => import('../components/page/systemManage/log_info.vue'),
                  //    meta: { title: '日志信息维护',permission: true ,auth_admin:true }
                  // },
  
                  {
                      // 权限页面
                      path: '/permission',
                      component: () => import(/* webpackChunkName: "permission" */ '../components/page/Permission.vue'),
                      meta: { title: '权限测试', permission: true }
                  },
                  {
                      path: '/404',
                      component: () => import(/* webpackChunkName: "404" */ '../components/page/404.vue'),
                      meta: { title: '404' }
                  },
                  {
                      path: '/403',
                      component: () => import(/* webpackChunkName: "403" */ '../components/page/403.vue'),
                      meta: { title: '403' }
                  }
              ]
          },
          {
              path: '/login',
              component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
              meta: { title: '登录' }
          },
          {
              path: '*',
              redirect: '/404'
          }
      ]
  });
  