This commit is contained in:
kakkokari-gtyih 2024-01-18 17:51:08 +09:00
parent 620fcf6b84
commit 19c370311d
1 changed files with 1 additions and 1 deletions

View File

@ -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 : '');
}
if (_DEV_) console.log('Redirecting to: ', redirectPath);
if (_redirected || this.redirectCount++ > 10) {
if (_redirected && this.redirectCount++ > 10) {
throw new Error('redirect loop detected');
}
return this.navigate(redirectPath, null, emitChange, true);