Authored by Tao

modify news && newsDetail last pages

... ... @@ -54,7 +54,10 @@ export default {
methods: {
...mapActions(['fetchNewsList', 'fetchNewsTabList']),
async onPullingUp() {
if (!this.newsList.isMoreData ) return false;
if (!this.newsList.isMoreData) {
this.$refs.scroll.forceUpdate();
return false
}
let params = {
type: '',
isPage: false
... ...
... ... @@ -52,12 +52,16 @@ export default {
methods: {
...mapActions(['fetchNewsList']),
async onPullingUp() {
if (!this.newsDeatilList.isMoreData ) return false;
if (!this.newsDeatilList.isMoreData ) {
this.$refs.scroll.forceUpdate();
return false
};
let params = {
type: this.type,
isPage: false
}
await this.fetchNewsList(params);
this.$refs.scroll.forceUpdate();
}
},
components: {
... ...