Skip to content

取消任务

方法

cancelQueueTaskById(taskId) -> {Promise.<Boolean>}

根据业务id获取区域列表

参数

名称 类型 说明
taskId string 任务Id

返回值 Promise.<Boolean>

请求示例

JavaScript
1
2
3
4
5
6
7
8
9
...
try {
  const res =await this.axRobot.cancelQueueTaskById(this.taskId)
  console.log('cancelQueueTaskById Success:', res)
  // cancelTaskV3 Success: true
} catch (error) {
  console.log('cancelQueueTaskById Error:', error)
}
...

响应数据示例

JSON
1
2
3
...
true or false
...