fix: 修改 系统语言为中文的时候不显示对应value的问题
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item v-if="editObject.id" :label="$t('config.user.createTime')">
|
||||
<div class="right-box-form-content-txt">{{editObject.createAt}}</div>
|
||||
<div class="right-box-form-content-txt">{{editObject.ctime}}</div>
|
||||
</el-form-item>
|
||||
|
||||
</el-form>
|
||||
|
||||
@@ -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)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user