|
@@ -101,7 +101,7 @@
|
|
|
<span>{{ child.title }}</span>
|
|
|
</li>
|
|
|
<li v-if="item.children.filter(c => c.otherType === other.value).length > 3"
|
|
|
- class="font-size-[14px] more" @click="handleToMore">
|
|
|
+ class="font-size-[14px] more" @click="handleToMore(item as any as ArticleDetailType)">
|
|
|
<span class="font-medium">{{ $t('more') }}>></span>
|
|
|
</li>
|
|
|
|
|
@@ -186,8 +186,12 @@ const handleToDoc = (child: ArticleDetailType) => {
|
|
|
// router.push({ path: '/showdoc', query: { cid: categoryId } })
|
|
|
}
|
|
|
}
|
|
|
-const handleToMore = () => {
|
|
|
-
|
|
|
+const handleToMore = (item: ArticleDetailType) => {
|
|
|
+ if (item && item.children && item.children.length > 0) {
|
|
|
+ const cateId = item.children[0].categoryId;
|
|
|
+ console.log('cateId', cateId)
|
|
|
+ router.push({ path: `/showcate/${cateId}` })
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|