标签重复问题
This commit is contained in:
parent
1050c4ddb1
commit
eb5e1ea0c2
@ -35,7 +35,7 @@ wepy.app({
|
||||
}
|
||||
},
|
||||
globalData: {
|
||||
versions: 'v5.5.75', // 版本号
|
||||
versions: 'v5.5.76', // 版本号
|
||||
navBarHeight: 0, // 导航栏高度
|
||||
navRight: 0, // 胶囊距右方间距(方保持左、右间距一致)
|
||||
navTop: 0, // 胶囊距顶部间距
|
||||
|
||||
@ -341,20 +341,21 @@ import base from '../../mixins/base'
|
||||
return !objectValue.includes(item)
|
||||
})
|
||||
console.log(objectValue, newHobbies, 'newHobbies===')
|
||||
that.customHobbiesList = that.customHobbiesList.map(item => {
|
||||
return {
|
||||
title: item,
|
||||
show: data.interest_label.includes(item)
|
||||
}
|
||||
})
|
||||
|
||||
if (newHobbies && newHobbies.length > 0) {
|
||||
newHobbies = newHobbies.map(item => {
|
||||
return {
|
||||
title: item,
|
||||
show: true
|
||||
}
|
||||
})
|
||||
// newHobbies = newHobbies.map(item => {
|
||||
// return {
|
||||
// title: item,
|
||||
// show: true
|
||||
// }
|
||||
// })
|
||||
that.customHobbiesList = [...new Set([...that.customHobbiesList, ...newHobbies])]
|
||||
that.customHobbiesList = that.customHobbiesList.map(item => {
|
||||
return {
|
||||
title: item,
|
||||
show: data.interest_label.includes(item)
|
||||
}
|
||||
})
|
||||
}
|
||||
} else {
|
||||
that.customHobbiesList = that.customHobbiesList.map(item => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user