|
@@ -65,7 +65,7 @@
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
compCollectList () {
|
|
compCollectList () {
|
|
|
- return this.$store.state.product.common.collectList
|
|
|
|
|
|
|
+ return this.$store.state.product.common.collectListMobile
|
|
|
},
|
|
},
|
|
|
fetching () {
|
|
fetching () {
|
|
|
return this.compCollectList.fetching
|
|
return this.compCollectList.fetching
|
|
@@ -77,7 +77,7 @@
|
|
|
fetch ({ store }) {
|
|
fetch ({ store }) {
|
|
|
return Promise.all([
|
|
return Promise.all([
|
|
|
// 获取器件收藏列表
|
|
// 获取器件收藏列表
|
|
|
- store.dispatch('product/saveStores', { count: 10, page: 1, type: 'component' })
|
|
|
|
|
|
|
+ store.dispatch('product/getCollectList', { count: 10, page: 1, type: 'component' })
|
|
|
])
|
|
])
|
|
|
},
|
|
},
|
|
|
components: {
|
|
components: {
|
|
@@ -104,7 +104,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
reloadList: function () {
|
|
reloadList: function () {
|
|
|
- this.$store.dispatch('product/saveStores', { page: this.page, count: this.count, type: 'component' })
|
|
|
|
|
|
|
+ this.$store.dispatch('product/getCollectList', { page: this.page, count: this.count, type: 'component' })
|
|
|
},
|
|
},
|
|
|
onPullUpAction: function () {
|
|
onPullUpAction: function () {
|
|
|
this.page++
|
|
this.page++
|
|
@@ -122,7 +122,7 @@
|
|
|
this.showPublishBox = true
|
|
this.showPublishBox = true
|
|
|
},
|
|
},
|
|
|
goUrl: function (url) {
|
|
goUrl: function (url) {
|
|
|
- console.log(url)
|
|
|
|
|
|
|
+// console.log(url)
|
|
|
this.$router.push(url)
|
|
this.$router.push(url)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|