提交 8d19e538 作者: “kai”

fix(MMCFlightControlCenter): 修复无人机设备树请求中缺少projectId的问题

在无人机设备树请求中添加projectId参数,确保请求能正确关联到当前项目
上级 f55becb1
......@@ -317,17 +317,17 @@ export default {
uavSocket.onopen = () => {
let user = JSON.parse(localStorage.getItem('tmj'))
console.log(this.$router,'xxx');
let { projectId } = this.$store.state.MMCFlightControlCenter;
if(user){
clearInterval(this.time)
this.time= setInterval(() => {
this.time= setInterval(() => {
const scene = this.getQueryParam('scene');
uavSocket.send(JSON.stringify({
type: "uas-device-getTree-message",
content:JSON.stringify( {
text:JSON.stringify({
deviceType:scene,
projectId:projectId,
serchKey: this.getCurrentSearchKey(),
}),
toUserId:user.user.userId,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论