From 8e5031e8a335875ce313dd9a5a8de73db28679d6 Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Thu, 1 Feb 2024 18:18:45 +0800 Subject: [PATCH] Fix route error in production mode --- src/util/route.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 }