fix(env): perf
This commit is contained in:
@@ -11,6 +11,35 @@ export const withoutLayoutRoutes = [
|
||||
"/component/label/picture/standalone",
|
||||
]
|
||||
|
||||
export const subPathList: MenuItem[] = [
|
||||
{
|
||||
title: "图片标注",
|
||||
url: "image",
|
||||
icon: "SystemIcon",
|
||||
},
|
||||
{
|
||||
title: "视频标注",
|
||||
url: "video",
|
||||
icon: "SystemIcon",
|
||||
},
|
||||
]
|
||||
|
||||
export const subConfigList: { source: string; url: string }[] =
|
||||
process.env.NEXT_PUBLIC_ENV === "development"
|
||||
? [
|
||||
{
|
||||
source: "/image",
|
||||
url: "http://localhost:5532",
|
||||
},
|
||||
{
|
||||
source: "/video",
|
||||
url: "http://localhost:5533",
|
||||
},
|
||||
]
|
||||
: process.env.NEXT_PUBLIC_ENV === "standalone"
|
||||
? []
|
||||
: []
|
||||
|
||||
export const componentList: MenuItem[] = [
|
||||
{
|
||||
title: "管理平台",
|
||||
@@ -96,16 +125,7 @@ export const componentList: MenuItem[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: "图片标注",
|
||||
url: "image",
|
||||
icon: "SystemIcon",
|
||||
},
|
||||
{
|
||||
title: "视频标注",
|
||||
url: "video",
|
||||
icon: "SystemIcon",
|
||||
},
|
||||
...subPathList,
|
||||
]
|
||||
|
||||
export const showList: MenuItem[] = []
|
||||
|
||||
Reference in New Issue
Block a user