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_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/seizeByIds',
= 'robot/syncByGroupId',
= '/robot/syncByGroupId',
}
export async function getAllRobots(): Promise<Array<RobotInfo>> {

View File

@ -230,6 +230,9 @@ export class EditorService extends Meta2d {
const robot = this.getRobotById(id);
if (isNil(robot)) return;
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()];
}

View File

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