text: import Vue from 'vue'
  import Router from 'vue-router'
  
  Vue.use(Router)
  
  export default new Router({
    routes: [
      {
        path: '/',
        redirect:'/index'
      },
      {
        path: '/index',
        name: 'index',
        component: () => import('./views/Homel.vue'),
      },
      {
        path: '/songsheet/:id',
        name: 'songsheet',
        component: () => import('./views/HotSongSheet.vue')
      },
      {
        path:'/singerlist',
        name:'singerlist',
        component: () => import('./views/Singerlist.vue'),
        children:[
          {
            path:'/singerlist/singer/:id',
            name:'singer',
            component:() => import('./views/Singer.vue')
          }
        ]
      },
      {
        path:'/toplists',
        name:'toplists',
        component:() => import('./views/Toplists.vue'),
        children:[
          {
            path:'/toplists/toplist/:id',
            name:'toplist',
            component:() => import('./views/Toplist.vue')
          }
        ]
      },
      {
        path:'/search',
        name:'search',
        component:() => import('./views/Search.vue')
      },
      {
        path:'/album/:id',
        name:'album',
        component:() => import('./views/Album.vue')
      },
      {
        path:'/user',
        name:'user',
        component:() => import('./views/User.vue')
      }
    ]
  })
  