From 53f9eed5ca87d6bac4a022e9442ceeedf937482b Mon Sep 17 00:00:00 2001 From: zhangheng Date: Thu, 2 Apr 2026 15:26:16 +0800 Subject: [PATCH] fix(env): url --- components/label/api/const.ts | 2 +- components/layout/common.ts | 8 ++++---- components/login/api/index.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/label/api/const.ts b/components/label/api/const.ts index 5e1fb07..85a96fa 100644 --- a/components/label/api/const.ts +++ b/components/label/api/const.ts @@ -1,6 +1,6 @@ export const BASE_LABEL_API = process.env.NEXT_PUBLIC_ENV === "production" - ? "https://label.soft.cowarobot.com" + ? "https://label.cowarobot.com" : process.env.NEXT_PUBLIC_ENV === "staging" ? "http://172.16.115.128:9110" : "https://label.softtest.cowarobot.com" diff --git a/components/layout/common.ts b/components/layout/common.ts index f854411..3ede516 100644 --- a/components/layout/common.ts +++ b/components/layout/common.ts @@ -50,19 +50,19 @@ export const subConfigList: { source: string; url: string }[] = : [ { source: "/image", - url: "https://label.soft.cowarobot.com", + url: "https://label.cowarobot.com", }, { source: "/video", - url: "https://label.soft.cowarobot.com", + url: "https://label.cowarobot.com", }, { source: "/lidar", - url: "https://label.soft.cowarobot.com", + url: "https://label.cowarobot.com", }, { source: "/mgt", - url: "https://label.soft.cowarobot.com", + url: "https://label.cowarobot.com", }, ] diff --git a/components/login/api/index.ts b/components/login/api/index.ts index 2075b43..c3d63e8 100644 --- a/components/login/api/index.ts +++ b/components/login/api/index.ts @@ -4,7 +4,7 @@ import { Login } from "./types" const BASE_PATH = process.env.NEXT_PUBLIC_ENV === "production" - ? "https://label.soft.cowarobot.com" + ? "https://label.cowarobot.com" : process.env.NEXT_PUBLIC_ENV === "staging" ? "http://172.16.115.128:9110" : "https://label.softtest.cowarobot.com"