diff --git a/src/store/index.ts b/src/store/index.ts index 69ab7449f..a9b7aba1e 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -54,7 +54,7 @@ export default createStore({ SET_LANGUAGE(state, lang) { localStorage.setItem('language', lang) lang ?? localStorage.removeItem('language') - if (state.lang !== lang) { + if (lang && state.lang !== lang) { location.reload() } },