feat(pwa): 重构 Service Worker 及版本更新机制

This commit is contained in:
PKC278
2026-01-02 20:36:33 +08:00
parent 2281e4224b
commit 6d2916dc9f
10 changed files with 431 additions and 543 deletions
+7
View File
@@ -237,6 +237,13 @@ async function loadBackgroundImages(retryCount = 0) {
}
onMounted(async () => {
// 移除URL中的时间戳参数
const url = new URL(window.location.href)
if (url.searchParams.has('t')) {
url.searchParams.delete('t')
window.history.replaceState({}, '', url.toString())
}
// 配置 ApexCharts
configureApexCharts()