yh-hiprint 2.2.2 → 2.2.3

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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -19,7 +19,7 @@ const hiprint = ({ code, params, data, isCustom }) => {
19
19
  let width = (document.documentElement.clientWidth - 1200) / 2;
20
20
  // 转换数组
21
21
  let paramData = params;
22
- if (typeof params !== "Array") {
22
+ if (!Array.isArray(params)) {
23
23
  paramData = [params];
24
24
  }
25
25
  let url = "/hiprint/#/preview?code=" + code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-hiprint",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",