修复了语言的问题
This commit is contained in:
parent
cb814e4fe2
commit
fc9a05636c
@ -3,6 +3,7 @@ import en from "./en"
|
||||
import { getset } from '@/api';
|
||||
import { geti18n } from '@/utils/i18n';
|
||||
import store from '@/store';
|
||||
import { getValue } from '@/utils/common';
|
||||
getset().then((res: any)=>{
|
||||
zh.shichangtishi = `最短${res.timeLowerLimit}min, 最长${res.timeCeiling}min`
|
||||
en.shichangtishi = `The shortest is ${res.timeLowerLimit}min and the longest is ${res.timeCeiling}min`
|
||||
@ -20,7 +21,7 @@ getset().then((res: any)=>{
|
||||
})
|
||||
|
||||
export default {
|
||||
locale: "zh", //默认语言
|
||||
locale: getValue("Lanvuage") || 'zh', //默认语言
|
||||
messages: {
|
||||
zh: zh,
|
||||
en: en
|
||||
|
Loading…
Reference in New Issue
Block a user