|
@@ -32,7 +32,7 @@ import { getAsyncRoutes } from "@/api/routes";
|
|
|
function handRank(routeInfo: any) {
|
|
function handRank(routeInfo: any) {
|
|
|
const { name, path, parentId, meta } = routeInfo;
|
|
const { name, path, parentId, meta } = routeInfo;
|
|
|
return isAllEmpty(parentId)
|
|
return isAllEmpty(parentId)
|
|
|
- ? isAllEmpty(meta?.rank) ||
|
|
|
|
|
|
|
+ ? (meta?.rank == null) ||
|
|
|
(meta?.rank === 0 && name !== "Home" && path !== "/")
|
|
(meta?.rank === 0 && name !== "Home" && path !== "/")
|
|
|
? true
|
|
? true
|
|
|
: false
|
|
: false
|