From da6a33a368c02acdbdb382e29b0e3723f0c7fe40 Mon Sep 17 00:00:00 2001 From: zhangheng Date: Wed, 15 Apr 2026 17:10:08 +0800 Subject: [PATCH] fix(common): prod hide lidar --- components/layout/common.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/components/layout/common.ts b/components/layout/common.ts index c19782b..9f6e77e 100644 --- a/components/layout/common.ts +++ b/components/layout/common.ts @@ -23,6 +23,17 @@ const currentComponentList: MenuItem[] = [ }, ] +const lidarList: MenuItem[] = + process.env.NEXT_PUBLIC_ENV === "production" + ? [] + : [ + { + title: "点云标注", + url: "lidar", + icon: "LidarAnnotationIcon", + }, + ] + export const componentList: MenuItem[] = [ { title: "个人中心", @@ -35,11 +46,7 @@ export const componentList: MenuItem[] = [ url: "video", icon: "VideoAnnotationIcon", }, - { - title: "点云标注", - url: "lidar", - icon: "LidarAnnotationIcon", - }, + ...lidarList, { title: "管理中心", url: "mgt",