Skip to content

Commit

Permalink
chore(ThemeConfiguration): avoid to save theme/i18n in queryParams
Browse files Browse the repository at this point in the history
  • Loading branch information
enzonotario committed Oct 27, 2024
1 parent f2edcfb commit 3daafc7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dev/.vitepress/theme/components/ThemeConfiguration.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ const sticky = ref(true)
const themeConfig = useTheme()
watch(() => themeConfig.getState(), (state) => {
params.themeConfig = compressToURL(JSON.stringify(state))
params.themeConfig = compressToURL(JSON.stringify({
...state,
theme: undefined,
i18n: undefined,
}))
}, { deep: true })
onMounted(() => {
Expand Down

0 comments on commit 3daafc7

Please sign in to comment.