fix: 修改 系统语言为中文的时候不显示对应value的问题

This commit is contained in:
zhangyu
2021-07-21 16:02:44 +08:00
parent 6e89e1a2b9
commit df0308a93a
2 changed files with 2 additions and 1 deletions

View File

@@ -123,6 +123,7 @@ export async function getI18n () {
const langs = dictData.map(d => d.value).join(',')
const request = new Promise(resolve => {
get(api.i18n, { l: langs }).then(response => {
response.data.cn = response.data.zh
resolve(response.data)
})
})