完成“已绑设备”功能

This commit is contained in:
CGD
2025-03-25 16:23:28 +08:00
parent d9dcb90745
commit be3e67b2c1
5 changed files with 90 additions and 42 deletions
+16
View File
@@ -257,4 +257,20 @@ export default {
});
}).send();
},
// 获取已绑设备
getAgentBindDevices(agentId, callback) {
RequestService.sendRequest()
.url(`${getServiceUrl()}/api/v1/user/agent/device/bind/${agentId}`)
.method('GET')
.success((res) => {
RequestService.clearRequestTime();
callback(res);
})
.fail((err) => {
console.error('获取设备列表失败:', err);
RequestService.reAjaxFun(() => {
this.getAgentBindDevices(agentId, callback);
});
}).send();
},
}