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