|
|
@@ -88,21 +88,15 @@
|
|
|
return this.$store.state.product.common.collectList.data
|
|
|
},
|
|
|
collectList () {
|
|
|
- // let _this = this
|
|
|
- if (this.lists.data.properties && this.lists.data.properties.length > 0) {
|
|
|
- let id = this.lists.data.properties[0].componentId
|
|
|
- let store = this.colList
|
|
|
- if (store) {
|
|
|
- for (let i = 0; i < store.length; i++) {
|
|
|
- if (store[i].componentid === id) {
|
|
|
- // _this.isShow = true
|
|
|
- return true
|
|
|
- }
|
|
|
+ let id = this.lists.data.id
|
|
|
+ let store = this.colList
|
|
|
+ if (store) {
|
|
|
+ for (let i = 0; i < store.length; i++) {
|
|
|
+ if (store[i].componentid === id) {
|
|
|
+ return true
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- // _this.isShow = false
|
|
|
- return false
|
|
|
}
|
|
|
},
|
|
|
components: {
|