更新国际化支持:为过滤媒体和资源组件添加多语言文本,提升用户体验

This commit is contained in:
jxxghp
2025-04-29 11:51:45 +08:00
parent 2a6abded08
commit 893df36c9d
6 changed files with 254 additions and 152 deletions

View File

@@ -40,13 +40,6 @@ async function loadMediaCategories() {
}
}
// 根据选中的媒体类型,获取对应的媒体类别
const getCategories = computed(() => {
const default_value = [{ title: t('common.all'), value: '' }]
if (!mediaCategories.value || !mediaCategories.value[props.data.type ?? '']) return default_value
return default_value.concat(mediaCategories.value[props.data.type ?? ''])
})
onMounted(() => {
loadMediaCategories()
})