...
|
...
|
@@ -39,7 +39,12 @@ |
|
|
const dataCache = {};
|
|
|
|
|
|
module.exports = {
|
|
|
props: ['contentCode'],
|
|
|
props: {
|
|
|
contentCode: {
|
|
|
type: String,
|
|
|
default: contentCode.channel.men
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
resources: []
|
...
|
...
|
@@ -64,8 +69,6 @@ |
|
|
|
|
|
if (this.contentCode) {
|
|
|
data.contentCode = this.contentCode;
|
|
|
} else {
|
|
|
data.contentCode = contentCode.channel.men;
|
|
|
}
|
|
|
|
|
|
let param = $.param(data);
|
...
|
...
|
@@ -91,8 +94,8 @@ |
|
|
},
|
|
|
created() {
|
|
|
this.getResourcesData();
|
|
|
bus.$on('changeChannel', channel => {
|
|
|
this.contentCode = contentCode.channel[channel];
|
|
|
bus.$on('changeChannel', (page, channel) => {
|
|
|
this.contentCode = contentCode[page][channel];
|
|
|
});
|
|
|
}
|
|
|
};
|
...
|
...
|
|