This commit is contained in:
pushuo 2022-07-15 17:15:56 +08:00
parent 831b5e53b2
commit f2020be44e
3 changed files with 3 additions and 3 deletions

View File

@ -64,10 +64,10 @@
this.languages.forEach(e => {
let value = this.value;
if (typeof(this.value) == 'object') {
value = this.value[e.id];
value = this.value[e.code];
}
Vue.set(this.internalValues, e.id, value || '');
Vue.set(this.internalValues, e.code, value || '');
})
this.$emit('input', this.internalValues);
}

View File

@ -21,7 +21,7 @@
<i class="el-icon-rank"></i>
</el-tooltip>
<img :src="thumbnail(item.image[{{ current_language_id() }}], 40, 40)" class="img-responsive">
<img :src="thumbnail(item.image['{{ current_language_code() }}'], 40, 40)" class="img-responsive">
</div>
<div class="right">