Browse Source

Update PostComments, fix comment order

Daniel Supernault 6 năm trước cách đây
mục cha
commit
327dd89177
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      resources/assets/js/components/PostComments.vue

+ 1 - 1
resources/assets/js/components/PostComments.vue

@@ -92,7 +92,7 @@ export default {
           axios.get(url)
             .then(response => {
                 let self = this;
-                this.results = response.data.data;
+                this.results = _.reverse(response.data.data);
                 this.pagination = response.data.meta.pagination;
                 if(this.results.length > 0) {
                   $('.load-more-link').removeClass('d-none');