优化热门绘画组件查询参数处理

This commit is contained in:
wangqiao
2025-09-29 09:37:36 +08:00
parent b23a85b9ec
commit 2bc5a11946

View File

@ -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()
}