@cpzxrobot/sdk 1.1.71 → 1.1.72

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/dist/index.js CHANGED
@@ -96,7 +96,7 @@ class Cpzxrobot {
96
96
  button.type = "file";
97
97
  button.style.display = "none";
98
98
  document.body.appendChild(button);
99
- button.onchange = (e) => {
99
+ button.onclick = (e) => {
100
100
  var _a;
101
101
  var file = (_a = e.target.files) === null || _a === void 0 ? void 0 : _a[0];
102
102
  if (file) {
package/index.ts CHANGED
@@ -132,7 +132,7 @@ export class Cpzxrobot {
132
132
  button.type = "file";
133
133
  button.style.display = "none";
134
134
  document.body.appendChild(button);
135
- button.onchange = (e: Event) => {
135
+ button.onclick = (e: Event) => {
136
136
  var file = (e.target as HTMLInputElement).files?.[0];
137
137
  if (file) {
138
138
  const formData = new FormData();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.71",
3
+ "version": "1.1.72",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {