|
@@ -41,10 +41,14 @@ const onClickSelect = (data) => {
|
|
|
}
|
|
|
|
|
|
const onClickItem = data => {
|
|
|
- if (data.name === '广东省博物馆') {
|
|
|
- router.push({name: 'gdmuseum'})
|
|
|
+ if (currentId === 'museum') {
|
|
|
+ if (data.name === '广东省博物馆') {
|
|
|
+ router.push({name: 'gdmuseum'})
|
|
|
+ } else {
|
|
|
+ router.push({name:'exhibition',query:{id:data.id}})
|
|
|
+ }
|
|
|
} else {
|
|
|
- router.push({name:'exhibition',query:{id:data.id}})
|
|
|
+ router.push({name:'zhanlan',params:{id:data.id}})
|
|
|
}
|
|
|
}
|
|
|
|