乐天mes前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
713 B

5 years ago
4 years ago
5 years ago
  1. <template>
  2. <transition name="fade">
  3. <router-view></router-view>
  4. </transition>
  5. </template>
  6. <script>
  7. import {searchSysLanguagePack} from "./api/sysLanguage.js"
  8. export default {
  9. data() {
  10. return {
  11. query: {}
  12. }
  13. },
  14. created() {
  15. // this.test();
  16. // this.languageRefresh()
  17. },
  18. methods: {
  19. test() {
  20. searchSysLanguagePack().then(({data}) => {
  21. // console.log(this.$i18n)
  22. // console.log(data.data)
  23. console.log(this.$i18n.locale)
  24. console.log(data.data)
  25. this.$i18n.mergeLocaleMessage('en', data.data.en)
  26. this.$i18n.mergeLocaleMessage('cn', data.data.cn)
  27. })
  28. }
  29. }
  30. }
  31. </script>