yh-hiprint 2.6.0 → 2.6.1

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 +2 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -105,9 +105,9 @@ const clientPrintHandler = async (code, params, data) => {
105
105
  loading = ElLoading.service({
106
106
  text: "正在获取打印模板"
107
107
  });
108
-
108
+ let reqParams = params ? JSON.parse(params) : [];
109
109
  // 获取打印模板
110
- let res = await getPrintTemplate(code, params);
110
+ let res = await getPrintTemplate(code, reqParams);
111
111
  if (res.status !== 200 || !res.data || !res.data.json) {
112
112
  ElMessageBox.alert(res.message || "获取打印模板失败", '提示');
113
113
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-hiprint",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",