|
|
@ -162,13 +162,26 @@ onMounted(() => { |
|
|
|
document.body.scrollTop = document.documentElement.scrollTop = 0 |
|
|
|
if (route.query?.t) { |
|
|
|
activeTab.value = route.query?.t |
|
|
|
return |
|
|
|
} |
|
|
|
const { pId, id } = route.params || {} |
|
|
|
activeTab.value = pId |
|
|
|
// 展示该产品详情 |
|
|
|
// 取消html的滚动条 |
|
|
|
const rootTag = document.getElementById('iflytop') |
|
|
|
rootTag.style.overflow = 'hidden' |
|
|
|
rootTag.style.height = '100%' |
|
|
|
showModalVisible.value = true |
|
|
|
// 根据activeTab和id确定详情数据 |
|
|
|
productInfo.value = case_detail_list[pId][id] |
|
|
|
}) |
|
|
|
|
|
|
|
watch( |
|
|
|
() => route.query?.t, |
|
|
|
() => { |
|
|
|
activeTab.value = route.query?.t |
|
|
|
if ((activeTab.value = route.query?.t)) { |
|
|
|
activeTab.value = route.query?.t |
|
|
|
} |
|
|
|
}, |
|
|
|
{ immediate: true, deep: true }, |
|
|
|
) |
|
|
|