yh-hiprint 2.6.15 → 2.6.16
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.ts +4 -3
- package/package.json +2 -2
package/index.ts
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
ElMessage,
|
|
10
10
|
} from 'element-plus';
|
|
11
11
|
import {createApp, createVNode} from 'vue';
|
|
12
|
+
import {Router} from "vue-router"
|
|
12
13
|
import {
|
|
13
14
|
hiprint,
|
|
14
15
|
defaultElementTypeProvider,
|
|
@@ -191,11 +192,11 @@ const silentHiprint = async ({
|
|
|
191
192
|
(window as unknown as CustomWindow).silentHiprint = silentHiprint;
|
|
192
193
|
|
|
193
194
|
interface InstallOptions {
|
|
194
|
-
router?:
|
|
195
|
+
router?: Router | undefined;
|
|
195
196
|
pinia?: any;
|
|
196
197
|
isAdmin?: boolean;
|
|
197
198
|
isNew?: boolean;
|
|
198
|
-
addInitTask: (any) =>
|
|
199
|
+
addInitTask: (cl:any) => void
|
|
199
200
|
}
|
|
200
201
|
|
|
201
202
|
// 客户端打印处理函数
|
|
@@ -489,7 +490,7 @@ export default {
|
|
|
489
490
|
|
|
490
491
|
if(isNew) {
|
|
491
492
|
addInitTask(async () => {
|
|
492
|
-
if (!router || router.hasRoute('Index')) return;
|
|
493
|
+
if (!router || !router.hasRoute('Index')) return;
|
|
493
494
|
router.addRoute('Index', {
|
|
494
495
|
path: 'hiprint/designer',
|
|
495
496
|
name: '打印设计器',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yh-hiprint",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.16",
|
|
4
4
|
"description": "Hiprint for Vue3 by NoahLiu in ForceCon in Hunan Changesha",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
"element-plus": "^2.9.0"
|
|
27
27
|
},
|
|
28
28
|
"author": "Liubin"
|
|
29
|
-
}
|
|
29
|
+
}
|