路由的replace属性

浏览器的历史记录有两种写入方式:分别为pushreplacepush是追加历史记录,replace是替换当前记录。路由跳转时候默认为push

如何开启replace模式:<router-link replace .......>News</router-link>

posted @ 2022-05-10 17:44  lin-1  阅读(149)  评论(0)    收藏  举报