Browse Source

feat: fix

gemercheung 6 months ago
parent
commit
93fffe59de
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/web/src/pages/index.vue

+ 2 - 2
packages/web/src/pages/index.vue

@@ -179,11 +179,11 @@ const onSlideChange = (index: number) => {
 
 const handleToDoc = (child: ArticleDetailType) => {
   const { articleId, categoryId } = child
-  console.log("handleToDoc", articleId, categoryId)
+  console.log("handleToDoc", child)
   if (articleId) {
     router.push({ path: `/showdoc/${articleId}` })
   } else {
-    // router.push({ path: '/showdoc', query: { cid: categoryId } })
+    router.push({ path: `/showcate/${categoryId}` })
   }
 }
 const handleToMore = (item: ArticleDetailType) => {