优化热门绘画组件查询参数处理
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user