feat(游戏王活动): 非阿语区展示不同的奖励政策图片
This commit is contained in:
parent
7889e4a5bd
commit
c270ef9354
@ -1025,11 +1025,11 @@ const getImgName = (filename) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const userRegion = ref(null)
|
const userRegion = ref(null)
|
||||||
const isNotArabicRegion = computed(() => {
|
const isNotArabicUserRegion = computed(() => {
|
||||||
return Boolean(userRegion.value?.regionCode && userRegion.value.regionCode !== 'AR')
|
return Boolean(userRegion.value?.regionCode && userRegion.value.regionCode !== 'AR')
|
||||||
})
|
})
|
||||||
const getRegionImgName = (defaultFilename, notArabicFilename) => {
|
const getRegionImgName = (defaultFilename, notArabicFilename) => {
|
||||||
return getImgName(isNotArabicRegion.value ? notArabicFilename : defaultFilename)
|
return getImgName(isNotArabicUserRegion.value ? notArabicFilename : defaultFilename)
|
||||||
}
|
}
|
||||||
const dailyPopUpImageName = computed(() => {
|
const dailyPopUpImageName = computed(() => {
|
||||||
return getRegionImgName('dailyPopUp_20260520', 'dailyPopUp_NOT_AR')
|
return getRegionImgName('dailyPopUp_20260520', 'dailyPopUp_NOT_AR')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user