控制初始化
This commit is contained in:
@@ -84,20 +84,6 @@ export function getWorkStatistics(params) {
|
||||
}
|
||||
|
||||
|
||||
// 判断是否能控制
|
||||
export function getControlRight(params) {
|
||||
const dataStr = localStorage.getItem('userInfo');
|
||||
let parse = JSON.parse(dataStr);
|
||||
var token = parse?.token;
|
||||
return api({
|
||||
url: `/websocket/judgeConnection`,
|
||||
method: 'get',
|
||||
headers: {
|
||||
Authorization: token // token 正常带上
|
||||
},
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 登录
|
||||
@@ -284,14 +270,6 @@ export function getAlimage(params) {
|
||||
})
|
||||
}
|
||||
|
||||
// 远程遥控 判断是否有权限/forward/device/remoteControl platform:web
|
||||
export function getJurisdiction(data) {
|
||||
return api({
|
||||
url: '/forward/device/remoteControl',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//下载割草任务记录
|
||||
|
||||
@@ -23,3 +23,21 @@ export function getLiveStream(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function getControlRight(params) {
|
||||
return request({
|
||||
url: `/websocket/judgeConnection`,
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
|
||||
// 远程遥控 判断是否有权限/forward/device/remoteControl platform:web
|
||||
export function getJurisdiction(data) {
|
||||
return request({
|
||||
url: '/forward/device/remoteControl',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user