Fix route error in production mode

This commit is contained in:
2024-02-01 18:18:45 +08:00
parent a7df95a613
commit 8e5031e8a3

View File

@@ -31,11 +31,13 @@ export const getAuthRoute = (
} }
return value return value
}) })
temp.push({ if (temp[0]) {
path: '', temp.push({
absolutePath: '', path: '',
element: <Navigate to={temp[0].absolutePath} replace /> absolutePath: '',
}) element: <Navigate to={temp[0].absolutePath} replace />
})
}
return temp return temp
} }