作用: 控制路由跳转时操作浏览器历史记录的模式 浏览器的历史记录有两种方式,分别为push和replace,push是追加历史记录,raplace是替换当前历史记录。路由跳转的默认方是push。 如何开启replace模式: 在router-link上增加replace属性即可