|
@@ -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) => {
|