text: import Vue from 'vue'
  import Router from 'vue-router'
  
  Vue.use(Router)
  
  export default new Router({
    //地址栏不会出现#
    mode: 'history',
    routes: [
      {
        path:'',
        redirect: '/home'
      },
      {
        path: '/home',
        component: ()=>import("../views/home/Home")
      },
      {
        path: "/category",
        component: ()=>import("../views/category/Category")
      },
      {
        path: "/shop",
        component: ()=>import("../views/shop/Shop")
      },
      {
        path: "/profile",
        component: ()=>import("../views/profile/Profile")
      }
    ]
  })
  