...
|
...
|
@@ -29,11 +29,11 @@ export default { |
|
|
sceneId: YAS.scene.list
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
this.setTitle();
|
|
|
},
|
|
|
mounted() {
|
|
|
// 自定义title
|
|
|
const { title = '' } = this.yoho.context;
|
|
|
|
|
|
this.title = title || '发现好货';
|
|
|
this.setTitle();
|
|
|
},
|
|
|
async serverPrefetch() {
|
|
|
return this.fetchFindNiceGoodsArticles({
|
...
|
...
|
@@ -51,6 +51,12 @@ export default { |
|
|
},
|
|
|
methods: {
|
|
|
...mapActions(['fetchFindNiceGoodsArticles']),
|
|
|
setTitle() {
|
|
|
// 自定义title
|
|
|
const { title = '' } = this.yoho.context;
|
|
|
|
|
|
this.title = title || '发现好货';
|
|
|
},
|
|
|
init() {
|
|
|
this.page = 1;
|
|
|
this.$refs.article.init();
|
...
|
...
|
|