@cpzxrobot/sdk 1.3.96 → 1.3.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/device_gateway.ts +1 -1
- package/dist/device_gateway.js +1 -1
- package/package.json +1 -1
package/device_gateway.ts
CHANGED
|
@@ -286,7 +286,7 @@ export class DeviceGateway extends Object {
|
|
|
286
286
|
*/
|
|
287
287
|
delete: async (id: number): Promise<any> => {
|
|
288
288
|
const axios = await this.context.ready;
|
|
289
|
-
return axios.
|
|
289
|
+
return axios.get(`/api/v2/device/stat/alarms/rule/delete/${id}`).then((res) => {
|
|
290
290
|
if (res.data.code !== 200) {
|
|
291
291
|
throw new Error(res.data.message || '删除报警规则失败');
|
|
292
292
|
}
|
package/dist/device_gateway.js
CHANGED
|
@@ -218,7 +218,7 @@ class DeviceGateway extends Object {
|
|
|
218
218
|
*/
|
|
219
219
|
delete: (id) => __awaiter(this, void 0, void 0, function* () {
|
|
220
220
|
const axios = yield this.context.ready;
|
|
221
|
-
return axios.
|
|
221
|
+
return axios.get(`/api/v2/device/stat/alarms/rule/delete/${id}`).then((res) => {
|
|
222
222
|
if (res.data.code !== 200) {
|
|
223
223
|
throw new Error(res.data.message || '删除报警规则失败');
|
|
224
224
|
}
|