Authored by baoss

优化埋点

... ... @@ -77,10 +77,10 @@ export default {
};
},
mounted() {
this.fetchCategoryParentList();
this.fetchBrandList({});
},
activated(){
async activated(){
await this.fetchCategoryParentList();
await this.fetchBrandList({});
this.reportYas(0);
},
methods: {
... ... @@ -117,7 +117,6 @@ export default {
TO_TYPE: val.linkType,
TO_ID: val.link,
};
// console.log(reportItem)
reportParams.push(reportItem)
}
});
... ...
... ... @@ -148,19 +148,18 @@ export default {
this.getAllInboxCatInfo();
this.PAGE_URL = window.location.href;
// 首页进入上报
},
async serverPrefetch() {
return this.fetchChannelList();
},
mounted() {
// 首页进入上报
this.$store.dispatch('reportYas', {
params: {
param: { },
appop: 'XY_UFO_MAIN_START'
}
});
},
async serverPrefetch() {
return this.fetchChannelList();
},
mounted() {
this.refreshProductList(this.active);
},
methods: {
... ...