knt-shared 1.10.0 → 1.10.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/dist/index.esm.js
CHANGED
|
@@ -10646,6 +10646,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10646
10646
|
__name: "index",
|
|
10647
10647
|
props: {
|
|
10648
10648
|
enabled: { type: Boolean, default: true },
|
|
10649
|
+
versionUrl: {},
|
|
10650
|
+
checkInterval: {},
|
|
10651
|
+
sessionKey: {},
|
|
10649
10652
|
title: { default: "页面超时" },
|
|
10650
10653
|
content: { default: "页面已超时,请刷新后正常使用" },
|
|
10651
10654
|
okText: { default: "立即刷新" },
|
|
@@ -10654,7 +10657,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10654
10657
|
setup(__props) {
|
|
10655
10658
|
const props = __props;
|
|
10656
10659
|
const { hasNewVersion, start, stop, applyUpdate, dismissUpdate } = useVersionCheck({
|
|
10657
|
-
enabled: props.enabled
|
|
10660
|
+
enabled: props.enabled,
|
|
10661
|
+
versionUrl: props.versionUrl,
|
|
10662
|
+
checkInterval: props.checkInterval,
|
|
10663
|
+
sessionKey: props.sessionKey
|
|
10658
10664
|
});
|
|
10659
10665
|
onMounted(() => start());
|
|
10660
10666
|
onUnmounted(() => stop());
|