debugging

This commit is contained in:
vabene1111
2024-01-19 21:42:48 +08:00
parent 12db67bd96
commit e321c80dd6
2 changed files with 7 additions and 2 deletions

View File

@@ -553,6 +553,10 @@ export default {
useUserPreferenceStore().loadUserSettings()
useUserPreferenceStore().loadDeviceSettings()
this.autoSyncLoop()
setInterval(() => {
this.getSyncQueueLength()
},1000)
},
methods: {
useUserPreferenceStore,
@@ -594,6 +598,7 @@ export default {
const wb = new Workbox('/service-worker.js');
wb.register();
return wb.messageSW({type: 'BGSYNC_COUNT_QUEUE'}).then((r) => {
console.log('sync que length :', r)
return r
})
},