diff --git a/pages/home/components/PopularDrawings.vue b/pages/home/components/PopularDrawings.vue index 48360bb..973897f 100644 --- a/pages/home/components/PopularDrawings.vue +++ b/pages/home/components/PopularDrawings.vue @@ -155,7 +155,7 @@ const all = [{ id: '0', name: '全部分类', children: [] }] if (Array.isArray(res.data) && res.data?.length > 0) { const total = [...res.data, ...all] - // query.projectTypeDay = total[0]?.id || '' + query.projectTypeDay = total[0]?.id || '' // query.projectType = total[0]!.children?.[0]?.id || '' return total } @@ -206,10 +206,10 @@ // } const handleHover = (item: ProjectDictNodeVO) => { - query.projectTypeDay = item.id || '' if (item.name === '全部分类') return + query.projectTypeDay = item.id || '' // projectTypeListChildren.value = item.children || [] - query.projectType = item.children?.[0].id || '' + // query.projectType = item.id || '' // 热门数据 getHotTop() }