vue push报错
const routerPush = Router.prototype.push
Router.prototype.push = function push(location) {
if(typeof(location)“string”){
var Separator = “&”;
if(location.indexOf(’?’)-1) { Separator=’?’; }
location = location + Separator + “random=” + Math.random();
}
return routerPush.call(this, location).catch(error=> error)
}
2021-01-10
最新推荐文章于 2021-11-10 17:26:45 发布