yh-hiprint 2.5.0 → 2.5.2

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/libs/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import axios from '@/libs/api.request.js';
2
+ export function getPrintTemplate(code, reqParams) {
3
+ return axios
4
+ .request({
5
+ url: `/printTemplate/data/${code}`,
6
+ method: 'post',
7
+ type: 'json',
8
+ data: reqParams,
9
+ })
10
+ .then(async (res) => {
11
+ return res;
12
+ });
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-hiprint",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -14,7 +14,8 @@
14
14
  "canvg": "4.0.1",
15
15
  "html2canvas": "1.4.1",
16
16
  "jspdf": "2.5.1",
17
- "nzh": "1.0.9"
17
+ "nzh": "1.0.9",
18
+ "socket.io-client": "^4.8.1"
18
19
  },
19
20
  "peerDependencies": {
20
21
  "vue": "^3.0.0"