<template>
  <transition name="fade">
    <router-view></router-view>
  </transition>
</template>

<script>
  import {searchSysLanguagePack} from "./api/sysLanguage.js"

  export default {
    data() {
      return {
        query: {}
      }
    },
    created() {
      this.test();
     // this.languageRefresh()
    },
    methods: {
      test() {
        searchSysLanguagePack().then(({data}) => {
          this.$i18n.mergeLocaleMessage('en', data.data.en)
          this.$i18n.mergeLocaleMessage('cn', data.data.cn)
        })
      }
    }
  }
</script>
