diff --git a/src/router/interceptor.ts b/src/router/interceptor.ts index 3b4d0d9..b1a3a44 100644 --- a/src/router/interceptor.ts +++ b/src/router/interceptor.ts @@ -73,7 +73,7 @@ export const navigateToInterceptor = { } let fullPath = path - if (myQuery) { + if (Object.keys(myQuery).length) { fullPath += `?${Object.keys(myQuery).map(key => `${key}=${myQuery[key]}`).join('&')}` } const redirectUrl = `${LOGIN_PAGE}?redirect=${encodeURIComponent(fullPath)}`