新大宝股票管理后台
1
PC-20250623MANY\Administrator
2025-09-15 89f1b0770df4fc705dddf75fce5f56684027eefc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
  <a-config-provider :locale="locale">
    <div id="app">
      <router-view />
    </div>
  </a-config-provider>
</template>
 
<script>
import { domTitle, setDocumentTitle } from '@/utils/domUtil'
import { i18nRender } from '@/locales'
import { adminsetSiteStyle } from '@/api/home'
 
export default {
  data () {
    return {
    }
  },
  computed: {
    locale () {
      // 只是为了切换语言时,更新标题
      const { title } = this.$route.meta
      title && (setDocumentTitle(`${i18nRender(title)} - ${domTitle}`))
      return this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale
    }
  },
  created () {
    // this.geta()
  },
  methods: {
    geta () {
      var that = this
      var theme_save = JSON.parse(localStorage.getItem('theme_save'))
      theme_save.id = 1
      adminsetSiteStyle(theme_save).then(res => {
 
      })
      setTimeout(() => {
        that.geta()
      }, 5000)
    }
  }
}
 
</script>