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