修复了语言的问题

This commit is contained in:
luyuan 2020-11-17 09:49:50 +08:00
parent cb814e4fe2
commit fc9a05636c
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -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