vg-print-vue2 1.0.403 → 1.0.404
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/dist/vg-print-vue2.es.js +10 -3
- package/package.json +1 -1
package/dist/vg-print-vue2.es.js
CHANGED
|
@@ -63952,6 +63952,7 @@ ${i18n.__("转大小写")}
|
|
|
63952
63952
|
if (!this.socket) {
|
|
63953
63953
|
var socket = this.socket = window.io(this.host, {
|
|
63954
63954
|
transports: ["websocket"],
|
|
63955
|
+
reconnection: false,
|
|
63955
63956
|
reconnectionAttempts: 5,
|
|
63956
63957
|
auth: {
|
|
63957
63958
|
token: this.token
|
|
@@ -63997,12 +63998,12 @@ ${i18n.__("转大小写")}
|
|
|
63997
63998
|
console.error(e3);
|
|
63998
63999
|
t5.opened = false;
|
|
63999
64000
|
hinnn.event.trigger("connect_error", e3);
|
|
64000
|
-
_this.destroySocket(
|
|
64001
|
+
_this.destroySocket(true);
|
|
64001
64002
|
_this.scheduleReconnect("connect_error", cb);
|
|
64002
64003
|
});
|
|
64003
64004
|
socket.on("disconnect", function(reason) {
|
|
64004
64005
|
t5.opened = false;
|
|
64005
|
-
_this.destroySocket(
|
|
64006
|
+
_this.destroySocket(true);
|
|
64006
64007
|
cb && cb(false, reason);
|
|
64007
64008
|
_this.scheduleReconnect("disconnect", cb);
|
|
64008
64009
|
});
|
|
@@ -74036,6 +74037,12 @@ ${i18n.__("转大小写")}
|
|
|
74036
74037
|
window.autoConnect && hiwebSocket.hasIo() && hiwebSocket.host && (!hiwebSocket.socket || !hiwebSocket.socket.connected || !hiwebSocket.opened) && hiwebSocket.scheduleReconnect(reason);
|
|
74037
74038
|
};
|
|
74038
74039
|
window.__vgPrintSocketLifecycleBound = true;
|
|
74040
|
+
window.addEventListener("pagehide", function() {
|
|
74041
|
+
hiwebSocket.stop();
|
|
74042
|
+
});
|
|
74043
|
+
window.addEventListener("beforeunload", function() {
|
|
74044
|
+
hiwebSocket.stop();
|
|
74045
|
+
});
|
|
74039
74046
|
window.addEventListener("pageshow", function(e2) {
|
|
74040
74047
|
ensureSocketReady(e2 && e2.persisted ? "pageshow:bfcache" : "pageshow");
|
|
74041
74048
|
});
|
|
@@ -77439,7 +77446,7 @@ async function ensureHttpClient() {
|
|
|
77439
77446
|
}
|
|
77440
77447
|
const name = "vg-print-vue2";
|
|
77441
77448
|
const description = "vg-print supports visual drag and drop design templates, with functions such as previewing and exporting PDFs/images. Silent printing can be achieved in conjunction with a dedicated client";
|
|
77442
|
-
const version = "1.0.
|
|
77449
|
+
const version = "1.0.404";
|
|
77443
77450
|
const author = "gmcSimple";
|
|
77444
77451
|
const license = "MIT";
|
|
77445
77452
|
const main = "dist/vg-print-vue2.cjs.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vg-print-vue2",
|
|
3
3
|
"description": "vg-print supports visual drag and drop design templates, with functions such as previewing and exporting PDFs/images. Silent printing can be achieved in conjunction with a dedicated client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.404",
|
|
5
5
|
"author": "gmcSimple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/vg-print-vue2.cjs.js",
|