fix
This commit is contained in:
parent
620fcf6b84
commit
19c370311d
|
@ -355,7 +355,7 @@ export class Router extends EventEmitter<RouterEvent> implements IRouter {
|
||||||
redirectPath = res.route.redirect + (res._parsedRoute.queryString ? '?' + res._parsedRoute.queryString : '') + (res._parsedRoute.hash ? '#' + res._parsedRoute.hash : '');
|
redirectPath = res.route.redirect + (res._parsedRoute.queryString ? '?' + res._parsedRoute.queryString : '') + (res._parsedRoute.hash ? '#' + res._parsedRoute.hash : '');
|
||||||
}
|
}
|
||||||
if (_DEV_) console.log('Redirecting to: ', redirectPath);
|
if (_DEV_) console.log('Redirecting to: ', redirectPath);
|
||||||
if (_redirected || this.redirectCount++ > 10) {
|
if (_redirected && this.redirectCount++ > 10) {
|
||||||
throw new Error('redirect loop detected');
|
throw new Error('redirect loop detected');
|
||||||
}
|
}
|
||||||
return this.navigate(redirectPath, null, emitChange, true);
|
return this.navigate(redirectPath, null, emitChange, true);
|
||||||
|
|
Loading…
Reference in New Issue