lw-cdp-ui 1.4.55 → 1.4.57
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/components/lwLayout/components/userbar.vue +17 -0
- package/dist/components/lwSearch/index.vue +2 -1
- package/dist/lw-cdp-ui.esm.js +3190 -3166
- package/dist/lw-cdp-ui.umd.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
- /package/dist/components/lwTable/locale/{en-us.js → en-US.js} +0 -0
- /package/dist/components/lwTable/locale/{zh-cn.js → zh-CN.js} +0 -0
|
@@ -99,6 +99,23 @@ export default {
|
|
|
99
99
|
})
|
|
100
100
|
.then(() => {
|
|
101
101
|
this.$tool.data.clear()
|
|
102
|
+
if ('serviceWorker' in navigator) {
|
|
103
|
+
const targetWorkerName = `sw-${this.$config.APP_NAME}.js`
|
|
104
|
+
|
|
105
|
+
navigator.serviceWorker.getRegistrations().then((registrations) => {
|
|
106
|
+
for (const registration of registrations) {
|
|
107
|
+
if (registration.scope.includes(targetWorkerName)) {
|
|
108
|
+
registration.unregister().then((success) => {
|
|
109
|
+
if (success) {
|
|
110
|
+
console.log(`Service Worker "${targetWorkerName}" 已注销`)
|
|
111
|
+
} else {
|
|
112
|
+
console.error(`注销失败,可能 ${targetWorkerName} 未激活`)
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
}
|
|
102
119
|
|
|
103
120
|
window.location.href = '/#/passport-login'
|
|
104
121
|
})
|