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
})
if (temp[0]) {
temp.push({
path: '',
absolutePath: '',
element: <Navigate to={temp[0].absolutePath} replace />
})
}
return temp
}