...
|
...
|
@@ -46,7 +46,6 @@ |
|
|
|
|
|
<script>
|
|
|
|
|
|
import {Scroll} from 'cube-ui';
|
|
|
import {debounce} from 'lodash';
|
|
|
import RecommendProductList from './recommend-product-list';
|
|
|
import Recommend from './recommend';
|
...
|
...
|
@@ -60,7 +59,6 @@ const { mapState } = createNamespacedHelpers('article'); |
|
|
export default {
|
|
|
name: 'ArticleBody',
|
|
|
components: {
|
|
|
Scroll,
|
|
|
RecommendProductList,
|
|
|
Recommend,
|
|
|
Author,
|
...
|
...
|
@@ -79,15 +77,8 @@ export default { |
|
|
...mapState(['articleDetail'])
|
|
|
},
|
|
|
mounted() {
|
|
|
this.updateDebounce = debounce(this.forceUpdate, 10);
|
|
|
},
|
|
|
methods: {
|
|
|
forceUpdate() {
|
|
|
this.$refs.scroll.refresh();
|
|
|
},
|
|
|
onScroll() {
|
|
|
this.updateDebounce();
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
</script>
|
...
|
...
|
|