window.addEventListener('vite:preloadError', (event) => { window.location.reload() // 例如,刷新页面 })