提交 a7a66fed 作者: 温凯

fix:ws 地址更换

上级 3b3ac518
......@@ -49,7 +49,7 @@ class Control_API {
// 申请接管无人机
static applyControlUav(params) {
return request({
url: `/admin-api/uas/device-take/updateCurrentOperator`,
url: `/admin-api/uas/device-take/controlUav`,
method: 'post',
params
});
......
......@@ -244,7 +244,7 @@ export default {
// 连接ws监听接管请求数据
let url = this.url.wsUrl
let token = this.$store.state.MMCFlightControlCenter.token
const socket = new WebSocket(`${url}?token=${token}`);
const socket = new WebSocket(`${url}/infra/ws?token=${token}`);
this.ws = socket;
socket.onopen = function () {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论