详情顶部导航跳转
This commit is contained in:
@@ -143,20 +143,17 @@ let downLoadMore = () => {
|
||||
|
||||
//listImg
|
||||
onMounted(() => {
|
||||
console.log(123)
|
||||
let type=null,data=null
|
||||
console.log(router.currentRoute.value.params)
|
||||
if (router.currentRoute.value.params.type) {
|
||||
let { type, data } = router.currentRoute.value.params
|
||||
type=type
|
||||
data=data
|
||||
type=router.currentRoute.value.params.type
|
||||
data=router.currentRoute.value.params.data
|
||||
} else {
|
||||
let { type, data } = router.currentRoute.value.query
|
||||
type=type
|
||||
data=data
|
||||
type=router.currentRoute.value.query.type
|
||||
data=router.currentRoute.value.query.data
|
||||
}
|
||||
let typeData = null
|
||||
if (data) typeData = JSON.parse(data)
|
||||
|
||||
if (data && Object.keys(data).length > 0) {
|
||||
if (type !== 'location') {
|
||||
seachSelectData.data = { [type]: typeData.id }
|
||||
|
||||
Reference in New Issue
Block a user