@cpzxrobot/sdk 1.1.84 → 1.1.85

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.
@@ -130,7 +130,7 @@ class UnitGateway extends Object {
130
130
  },
131
131
  delete: (unit) => {
132
132
  return this.context.ready.then((axios) => {
133
- return axios.get(`/api/v2/unit/delete?id=${unit.id}`);
133
+ return axios.post(`/api/v2/unit/delete?id=${unit.id}`);
134
134
  });
135
135
  },
136
136
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.84",
3
+ "version": "1.1.85",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/unit_gateway.ts CHANGED
@@ -155,7 +155,7 @@ export class UnitGateway extends Object {
155
155
 
156
156
  delete: (unit: Unit) => {
157
157
  return this.context.ready.then((axios) => {
158
- return axios.get(`/api/v2/unit/delete?id=${unit.id}`);
158
+ return axios.post(`/api/v2/unit/delete?id=${unit.id}`);
159
159
  });
160
160
  },
161
161
  };