Compare commits
No commits in common. "a7aeb252ffbc6dc71f20cbd9f5fcfbd7dbfe5a18" and "30f677d11954ce10a4e56312ca9e17158905903f" have entirely different histories.
a7aeb252ff
...
30f677d119
|
|
@ -11,7 +11,6 @@
|
|||
|
||||
<script>
|
||||
import colorTool from "@/utils/color";
|
||||
import i18n from '@/locales'
|
||||
export default {
|
||||
name: "App",
|
||||
data() {
|
||||
|
|
@ -27,8 +26,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
locale() {
|
||||
const lang = i18n.global.locale.value
|
||||
return i18n.global.messages.value?.[lang]?.el
|
||||
return this.$i18n.messages[this.$i18n.locale].el;
|
||||
},
|
||||
},
|
||||
created() {
|
||||
|
|
|
|||
|
|
@ -21,9 +21,8 @@ const messages = {
|
|||
const i18n = createI18n({
|
||||
locale: tool.data.get("APP_LANG") || sysConfig.LANG,
|
||||
fallbackLocale: 'zh-cn',
|
||||
globalInjection: false,
|
||||
globalInjection: true,
|
||||
messages,
|
||||
legacy: false
|
||||
})
|
||||
|
||||
export default i18n;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@ app.use(DataVVue3);
|
|||
|
||||
//挂载app
|
||||
app.mount("#app");
|
||||
app.config.globalProperties.$t = i18n.global.t
|
||||
|
||||
const debounce = (fn, delay) => {
|
||||
let timer = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue