fix(common): prod hide lidar
This commit is contained in:
@@ -86,6 +86,17 @@ const currentComponentList: MenuItem[] = [
|
|||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
const lidarList: MenuItem[] =
|
||||||
|
process.env.NEXT_PUBLIC_ENV === "production"
|
||||||
|
? []
|
||||||
|
: [
|
||||||
|
{
|
||||||
|
title: "点云标注",
|
||||||
|
url: "lidar",
|
||||||
|
icon: "LidarAnnotationIcon",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
export const componentList: MenuItem[] = [
|
export const componentList: MenuItem[] = [
|
||||||
...currentComponentList,
|
...currentComponentList,
|
||||||
{
|
{
|
||||||
@@ -98,11 +109,7 @@ export const componentList: MenuItem[] = [
|
|||||||
url: "video",
|
url: "video",
|
||||||
icon: "VideoAnnotationIcon",
|
icon: "VideoAnnotationIcon",
|
||||||
},
|
},
|
||||||
{
|
...lidarList,
|
||||||
title: "点云标注",
|
|
||||||
url: "lidar",
|
|
||||||
icon: "LidarAnnotationIcon",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "管理中心",
|
title: "管理中心",
|
||||||
url: "mgt",
|
url: "mgt",
|
||||||
|
|||||||
Reference in New Issue
Block a user