feat: change ws prefix
This commit is contained in:
parent
4d38da8d67
commit
74c97d077b
@ -1,3 +1,3 @@
|
||||
ENV_APP_TITLE=大众一汽发动机AMR调度系统
|
||||
ENV_HTTP_BASE=/jeecg-boot/
|
||||
ENV_WEBSOCKET_BASE=/ws
|
||||
ENV_WEBSOCKET_BASE=/jeecg-boot/
|
@ -8,7 +8,7 @@ const enum API {
|
||||
注册机器人 = '/robot/register',
|
||||
|
||||
批量抢占控制权 = '/robot/seizeByIds',
|
||||
同步组文件 = 'robot/syncByGroupId',
|
||||
同步组文件 = '/robot/syncByGroupId',
|
||||
}
|
||||
|
||||
export async function getAllRobots(): Promise<Array<RobotInfo>> {
|
||||
|
@ -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()];
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user