From f97ee12c96d96e2f529e4248695d643245ec4243 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 20 八月 2024 15:21:56 +0800 Subject: [PATCH] # --- src/config/setting.js | 25 ++++++++++++++++++------- 1 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src/config/setting.js b/src/config/setting.js index 8f6845c..b2afd0d 100644 --- a/src/config/setting.js +++ b/src/config/setting.js @@ -1,4 +1,10 @@ -export const API_BASE_URL = import.meta.env.COOL_API_BASE_URL; +export const IP = import.meta.env.COOL_BASE_IP; + +export const PORT = import.meta.env.COOL_BASE_PORT; + +export const API_BASE_URL = 'http://' + IP + ':' + PORT + ''; + +export const WEBSOCKET_BASE_URL = 'ws://' + IP + ':' + PORT + ''; export const TOKEN_HEADER_NAME = 'Authorization'; @@ -10,11 +16,16 @@ // model scale rate -export const MODEL_AGV_SCALE = .5; +export const BATCH_SCALE = 1.3; -export const MODEL_BOX_SCALE = .5; +export const MODEL_AGV_COLOR = 0x4b4b4b; -export const MODEL_SHELF_SCALE = .6; +export const MODEL_AGV_SCALE = .7; + +export const MODEL_BOX_SCALE = .7; + +export const MODEL_SHELF_SCALE = { x: 0.8, y: 0.8, z: 0.75 }; + // shelf scale & offset @@ -28,8 +39,8 @@ export const SHELF_BAY_GROUP_COUNT = 3; -export const SHELF_BAY_UNIT_SEPARTE_DISTANCE = 50; +export const SHELF_BAY_UNIT_SEPARTE_DISTANCE = 54; -export const SHELF_HEIGHT_FROM_GROUND = 10; +export const SHELF_HEIGHT_FROM_GROUND = 32; -export const SHELF_LEV_UNIT_SEPARTE_DISTANCE = 28; \ No newline at end of file +export const SHELF_LEV_UNIT_SEPARTE_DISTANCE = 30; \ No newline at end of file -- Gitblit v1.9.1