This commit is contained in:
@@ -35,7 +35,7 @@ const loading = ref(false)
|
||||
const mobileSidebar = ref(false)
|
||||
const mobileDetail = ref(false)
|
||||
const markdownPreview = ref(false)
|
||||
const showCompleted = ref(false)
|
||||
const showCompleted = ref(true)
|
||||
const page = ref(1)
|
||||
const pageSize = 50
|
||||
const totalTasks = ref(0)
|
||||
|
||||
@@ -3,4 +3,9 @@ import App from './App.vue'
|
||||
import './style.css'
|
||||
|
||||
createApp(App).mount('#app')
|
||||
if ('serviceWorker' in navigator && import.meta.env.PROD) navigator.serviceWorker.register('/sw.js')
|
||||
if ('serviceWorker' in navigator && import.meta.env.PROD) {
|
||||
navigator.serviceWorker.getRegistrations().then((registrations) => {
|
||||
registrations.forEach((registration) => registration.unregister())
|
||||
})
|
||||
caches.keys().then((keys) => keys.forEach((key) => caches.delete(key)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user