提交 8904db18 作者: “kai”

refactor(MMCFlightControlCenter): 移除未使用的mock数据并修正WebSocket端点

移除hangar列表组件中未使用的mock数据导入
将uav WebSocket端点更正为uas以匹配后端API
上级 acf0fa63
...@@ -47,7 +47,6 @@ ...@@ -47,7 +47,6 @@
import { Control_API } from "../../../../api"; import { Control_API } from "../../../../api";
import Item from "./components/item"; import Item from "./components/item";
import { mapState } from "vuex"; import { mapState } from "vuex";
import mock from './mock';
export default { export default {
name: "List", name: "List",
......
...@@ -232,7 +232,7 @@ export default { ...@@ -232,7 +232,7 @@ export default {
let url = this.url.wsUrl let url = this.url.wsUrl
let token = this.$store.state.MMCFlightControlCenter.token let token = this.$store.state.MMCFlightControlCenter.token
const socket = new WebSocket(`${url}/infra/ws?token=${token}`); const socket = new WebSocket(`${url}/infra/ws?token=${token}`);
const uavSocket = new WebSocket(`${url}/uav/ws?token=${token}`); const uavSocket = new WebSocket(`${url}/uas/ws?token=${token}`);
this.ws = socket; this.ws = socket;
this.uavWs = uavSocket; this.uavWs = uavSocket;
socket.onopen = function () { socket.onopen = function () {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论