Skip to content

Commit

Permalink
fix(PageFooter): fix document title update
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Aug 11, 2022
1 parent 44df585 commit fc89b37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/PageFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
</template>

<script lang="ts">
import i18n from '@/i18n'
import { useStore } from '@/store'
import { isDark, useLocale } from '@/utilities'
import { defineAsyncComponent, defineComponent, PropType, watch } from 'vue'
Expand Down Expand Up @@ -100,7 +101,7 @@ export default defineComponent({
},
]
watch(locale, (newLocale) => {
watch(i18n.global.locale, (newLocale) => {
store.loadData(newLocale)
document.title = t(route.meta.title as string)
})
Expand Down

0 comments on commit fc89b37

Please sign in to comment.