v>我是主页{{$route.params.id}}</div>'
  };
  const admin = {
    template:'<div>我是管理页面,参数为:{{param1}}</div>',
    data: function () {
      return {
        param1:'',
        param2:''
      }
    },
    mounted: function () {
      this.param1 = this.$route.params.userId;
    }
  };
  const routes = [
    { path: '/home/:id', component: home },
    { path: '/admin/:userId/query', component: admin }
  ]
  var router = new VueRouter({
    routes:routes
  });
  new Vue({
    el:"#app",
