diff --git a/src/util/route.tsx b/src/util/route.tsx index caf8372..b2227a5 100644 --- a/src/util/route.tsx +++ b/src/util/route.tsx @@ -31,11 +31,13 @@ export const getAuthRoute = ( } return value }) - temp.push({ - path: '', - absolutePath: '', - element: - }) + if (temp[0]) { + temp.push({ + path: '', + absolutePath: '', + element: + }) + } return temp }