feat: change ws prefix

This commit is contained in:
chndfang 2025-06-08 16:36:57 +08:00
parent 4d38da8d67
commit 74c97d077b
4 changed files with 11 additions and 8 deletions

View File

@ -1,3 +1,3 @@
ENV_APP_TITLE=大众一汽发动机AMR调度系统 ENV_APP_TITLE=大众一汽发动机AMR调度系统
ENV_HTTP_BASE=/jeecg-boot/ ENV_HTTP_BASE=/jeecg-boot/
ENV_WEBSOCKET_BASE=/ws ENV_WEBSOCKET_BASE=/jeecg-boot/

View File

@ -8,7 +8,7 @@ const enum API {
= '/robot/register', = '/robot/register',
= '/robot/seizeByIds', = '/robot/seizeByIds',
= 'robot/syncByGroupId', = '/robot/syncByGroupId',
} }
export async function getAllRobots(): Promise<Array<RobotInfo>> { export async function getAllRobots(): Promise<Array<RobotInfo>> {

View File

@ -230,6 +230,9 @@ export class EditorService extends Meta2d {
const robot = this.getRobotById(id); const robot = this.getRobotById(id);
if (isNil(robot)) return; if (isNil(robot)) return;
this.#robotMap.set(id, { ...robot, ...value }); this.#robotMap.set(id, { ...robot, ...value });
if (value.label) {
this.setValue({ id, text: value.label }, { render: true, history: false, doEvent: false });
}
(<SceneData>this.store.data).robots = [...this.#robotMap.values()]; (<SceneData>this.store.data).robots = [...this.#robotMap.values()];
} }

View File

@ -48,12 +48,12 @@ export default ({ mode }: Record<string, unknown>) =>
rewrite: (path) => path.replace(/^\/api/, ''), rewrite: (path) => path.replace(/^\/api/, ''),
changeOrigin: true, changeOrigin: true,
}, },
// '/ws/': { '/ws/': {
// target: 'ws://82.157.33.186:26981/jeecg-boot', target: 'ws://82.156.39.91:18080/jeecg-boot',
// rewrite: (path) => path.replace(/^\/ws/, ''), rewrite: (path) => path.replace(/^\/ws/, ''),
// changeOrigin: true, changeOrigin: true,
// ws: true, ws: true,
// }, },
}, },
}, },
}); });