|
@@ -245,7 +245,6 @@ const handleIndustryClear = (k) => {
|
|
|
query.industryIdList = query.industryIdList.filter(i => i !== k.id)
|
|
|
const index = currentSelect.findIndex(i => i.id === k.id)
|
|
|
if (index !== -1) currentSelect.splice(index, 1)
|
|
|
- console.log(k, 'industry', query.industryIdList, currentSelect)
|
|
|
}
|
|
|
|
|
|
// 其它感兴趣的城市
|
|
@@ -256,8 +255,8 @@ const handleArea = (list, arr) => {
|
|
|
areaSelect = arr
|
|
|
}
|
|
|
const handleAreaClear = (k) => {
|
|
|
- query.interestedAreaIdList = query.interestedAreaIdList.filter(i => i !== k.id)
|
|
|
- const index = areaSelect.findIndex(i => i.id === k.id)
|
|
|
+ query.interestedAreaIdList = query.interestedAreaIdList.filter(i => Number(i) !== Number(k.id))
|
|
|
+ const index = areaSelect.findIndex(i => Number(i.id) === Number(k.id))
|
|
|
if (index !== -1) areaSelect.splice(index, 1)
|
|
|
}
|
|
|
|