进入详情时判断颜色默认值

This commit is contained in:
A1300399510 2024-05-15 12:15:24 +08:00
parent 8473f5cd05
commit 84a96c1f85

View File

@ -108,6 +108,7 @@ let uniqidIndex = ref(0)
if (route.query.colorI) uniqidIndex.value = route.query.colorI if (route.query.colorI) uniqidIndex.value = route.query.colorI
else uniqidIndex.value = Math.floor(Math.random() * 6) else uniqidIndex.value = Math.floor(Math.random() * 6)
if (uniqidIndex.value > 6) uniqidIndex = 0
onMounted(() => { onMounted(() => {
getDetails() getDetails()