有个后台。多语言的,我这边内网测试没什么问题
但是外网切换到英文就显示id这个字段了
<div class="propstyle">
<span>{{ $t("propsDistribution.propsType") }}</span>
<el-select v-model="item.itemType" :placeholder="$t('eavTable.deafultSelectPlaceholder')"
class="input-width120" @change="selectType(item.itemType, index)">
<el-option v-for="tv in typeData" :key="tv.id" :label="tv[propIdName]" :value="tv.id">
</el-option>
</el-select>
</div>
<div class="propstyle">
<span>{{ $t("noviceGiftConfig.itemName") }}</span>
<el-select v-model="item.itemId" :placeholder="$t('eavTable.deafultSelectPlaceholder')" filterable
class="input-width120">
<el-option v-for="v in item.hatData" :key="v.id" :label="v[propIdName]" :value="v.id">
</el-option>
</el-select>
</div>
propIdName() {
switch (this.$i18n.locale) {
case "zh":
return "name";
break;
case "en":
return "nameEn";
break;
case "ar":
return "nameAr";
break;
default:
return "name";
}
},