feat: change ws prefix
This commit is contained in:
parent
4d38da8d67
commit
74c97d077b
@ -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/
|
@ -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>> {
|
||||||
|
@ -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()];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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,
|
||||||
// },
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user