Authored by bevishuang

优化埋点上报 ---review baoss

@@ -126,6 +126,10 @@ export default { @@ -126,6 +126,10 @@ export default {
126 } 126 }
127 }, 127 },
128 activated() { 128 activated() {
  129 + if (!this.channelList.list || !this.channelList.list.length) {
  130 + this.fetchChannelList();
  131 + }
  132 + this.init();
129 this.PAGE_URL = window.location.href; 133 this.PAGE_URL = window.location.href;
130 // 首页进入上报 134 // 首页进入上报
131 this.$store.dispatch('reportYas', { 135 this.$store.dispatch('reportYas', {
@@ -134,10 +138,6 @@ export default { @@ -134,10 +138,6 @@ export default {
134 appop: 'XY_UFO_MAIN_START' 138 appop: 'XY_UFO_MAIN_START'
135 } 139 }
136 }); 140 });
137 - if (!this.channelList.list || !this.channelList.list.length) {  
138 - this.fetchChannelList();  
139 - }  
140 - this.init();  
141 }, 141 },
142 async serverPrefetch() { 142 async serverPrefetch() {
143 return this.fetchChannelList(); 143 return this.fetchChannelList();
@@ -200,7 +200,7 @@ export default { @@ -200,7 +200,7 @@ export default {
200 }, 200 },
201 reportYas(scrollY) { 201 reportYas(scrollY) {
202 this.getReportEle(scrollY) 202 this.getReportEle(scrollY)
203 - console.log(this.homeYasParams) 203 + // console.log(this.homeYasParams)
204 this.$store.dispatch('reportYas', { 204 this.$store.dispatch('reportYas', {
205 params: { 205 params: {
206 param: this.homeYasParams, 206 param: this.homeYasParams,