|
|
@@ -73,7 +73,6 @@
|
|
|
watch: {
|
|
|
'compCollectList.data': {
|
|
|
handler: function (val) {
|
|
|
- console.log('1' + val)
|
|
|
if (val.content) {
|
|
|
if (this.isChange) {
|
|
|
this.compList = val.content
|
|
|
@@ -82,16 +81,13 @@
|
|
|
this.compList = [...this.compList, ...val.content]
|
|
|
}
|
|
|
}
|
|
|
- console.log(this.compList, '22')
|
|
|
},
|
|
|
immediate: true
|
|
|
}
|
|
|
},
|
|
|
- fetch ({ store, params }) {
|
|
|
- console.log(111)
|
|
|
- return Promise.all([
|
|
|
- store.dispatch('searchData/searchForListInMobile', { page: 1, count: 10, type: 'component', keyword: params.key })
|
|
|
- ])
|
|
|
+ created () {
|
|
|
+ this.keyword = this.$route.params.key
|
|
|
+ this.$store.dispatch('searchData/searchForListInMobile', { page: 1, count: 10, type: 'component', keyword: this.$route.params.key })
|
|
|
},
|
|
|
computed: {
|
|
|
compCollectList () {
|
|
|
@@ -107,9 +103,6 @@
|
|
|
return this.$store.state.product.common.collectList.data
|
|
|
}
|
|
|
},
|
|
|
- mounted () {
|
|
|
- this.keyword = this.$route.params.key
|
|
|
- },
|
|
|
components: {
|
|
|
RemindBox,
|
|
|
PullUp,
|