mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 08:06:43 +08:00
feat(pwa): 重构 Service Worker 及版本更新机制
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user