gemercheung vor 6 Monaten
Ursprung
Commit
93fffe59de
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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) => {