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.
@@ -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
  })
@@ -359,7 +359,8 @@ export default {
359
359
  align-items: center;
360
360
  justify-content: flex-end;
361
361
  box-sizing: border-box;
362
- width: 40px;
362
+ min-width: 30px;
363
+ padding-left: 10px;
363
364
  padding-right: 5px;
364
365
  cursor: pointer;
365
366