进入详情时判断颜色默认值
This commit is contained in:
parent
8473f5cd05
commit
84a96c1f85
@ -108,6 +108,7 @@ let uniqidIndex = ref(0)
|
||||
|
||||
if (route.query.colorI) uniqidIndex.value = route.query.colorI
|
||||
else uniqidIndex.value = Math.floor(Math.random() * 6)
|
||||
if (uniqidIndex.value > 6) uniqidIndex = 0
|
||||
|
||||
onMounted(() => {
|
||||
getDetails()
|
||||
|
Loading…
x
Reference in New Issue
Block a user