Преглед на файлове

fix: tags page missing any locale translation

NGPixel преди 5 години
родител
ревизия
2e804a467e
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      client/components/tags.vue

+ 3 - 3
client/components/tags.vue

@@ -245,13 +245,13 @@ export default {
   router,
   created () {
     this.$store.commit('page/SET_MODE', 'tags')
-
+    this.selection = _.compact(this.$route.path.split('/'))
+  },
+  mounted () {
     this.locales = _.concat(
       [{name: this.$t('tags:localeAny'), code: 'any'}],
       (siteLangs.length > 0 ? siteLangs : [])
     )
-
-    this.selection = _.compact(this.$route.path.split('/'))
   },
   methods: {
     toggleTag (tag) {