Explorar o código

自测bug修复:首页-列表页 如果是虚拟展览列表,点击后应该跳到虚拟展览页。

任一存 %!s(int64=2) %!d(string=hai) anos
pai
achega
6349eb7efa
Modificáronse 1 ficheiros con 7 adicións e 3 borrados
  1. 7 3
      code/src/views/home/list.vue

+ 7 - 3
code/src/views/home/list.vue

@@ -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}})
   }
 }