Authored by ccbikai

修改事件

@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 methods: { 37 methods: {
38 changeChannel(index) { 38 changeChannel(index) {
39 this.current = index; 39 this.current = index;
40 - bus.$emit('changeChannel', this.page, this.channel[index].channel); 40 + bus.$emit('channel.change', this.page, this.channel[index].channel);
41 } 41 }
42 } 42 }
43 }; 43 };
@@ -94,7 +94,7 @@ @@ -94,7 +94,7 @@
94 }, 94 },
95 created() { 95 created() {
96 this.getResourcesData(); 96 this.getResourcesData();
97 - bus.$on('changeChannel', (page, channel) => { 97 + bus.$on('channel.change', (page, channel) => {
98 this.contentCode = contentCode[page][channel]; 98 this.contentCode = contentCode[page][channel];
99 }); 99 });
100 } 100 }