浏览代码

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) {