vue 报 Error: Redirected when going from "/login?redirect=%2Fdashboard" to "/dashboard" via a navigation guard.
可在router 中添加
const originalPush = Router.prototype.push
Router.prototype.push = function push(location, onResolve, onReject) {
if (onResolve || onReject) { return originalPush.call(this, location, onResolve, onReject) }
return originalPush.call(this, location).catch((err) => err)
}
随之可以解决