feat(游戏王活动): 非阿语区展示不同的奖励政策图片

This commit is contained in:
hzj 2026-05-26 18:21:49 +08:00
parent 7889e4a5bd
commit c270ef9354

View File

@ -1025,11 +1025,11 @@ const getImgName = (filename) => {
}
const userRegion = ref(null)
const isNotArabicRegion = computed(() => {
const isNotArabicUserRegion = computed(() => {
return Boolean(userRegion.value?.regionCode && userRegion.value.regionCode !== 'AR')
})
const getRegionImgName = (defaultFilename, notArabicFilename) => {
return getImgName(isNotArabicRegion.value ? notArabicFilename : defaultFilename)
return getImgName(isNotArabicUserRegion.value ? notArabicFilename : defaultFilename)
}
const dailyPopUpImageName = computed(() => {
return getRegionImgName('dailyPopUp_20260520', 'dailyPopUp_NOT_AR')