hash模式和history模式
    history模式提供了pushState和replaceState方法,

    $router是vue-router的一个路由实例,$route是当前的路由对象