Skip to content

Commit

Permalink
🐛 fixed admin comments pagination not work
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Oct 12, 2018
1 parent 27b9206 commit 5a3e397
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/resources/templates/admin/comments.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,17 @@ <h3 class="panel-title">评论管理</h3>
vueLoding = this.$loading.show();
},
mounted: function () {
this.load();
this.load(1);
},
methods: {
load: function () {
load: function (page) {
var $vm = this;
tale.get({
url: '/admin/api/comments',
data: {
page: page,
limit: 12
},
success: function (data) {
$vm.commentPage = data.payload
},
Expand Down

0 comments on commit 5a3e397

Please sign in to comment.