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.
- package/index.js +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,
|
|
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;
|