fix(sw): remove i18n cache after SW registered

This commit is contained in:
Aaron Liu 2025-04-27 10:26:48 +08:00
parent 5986284df0
commit 3f60cf4b8f

View File

@ -205,7 +205,9 @@ export const App = () => {
needRefresh: [needRefresh, setNeedRefresh],
updateServiceWorker,
} = useRegisterSW({
onRegisteredSW(swUrl, r) {},
onRegisteredSW(swUrl, r) {
removeI18nCache();
},
onRegisterError(error) {
console.log("SW registration error", error);
},