Skip to content

Commit

Permalink
🐛 fixed paging invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Sep 21, 2018
1 parent 04ee8c6 commit 8ce5bf7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/main/resources/templates/admin/articles.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ <h3 class="panel-title">文章管理</h3>
type: 'post',
title:'',
status: '',
categories: ''
categories: '',
page: 1
},
categories:[]
},
Expand All @@ -141,8 +142,10 @@ <h3 class="panel-title">文章管理</h3>
}
});
},
load: function () {
load: function (page) {
var $vm = this;
$vm.search.page = page;

tale.get({
url: '/admin/api/articles',
data: $vm.search,
Expand Down
5 changes: 4 additions & 1 deletion src/main/resources/templates/admin/attaches.html
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,13 @@ <h3 class="panel-title">附件管理</h3>
this.load();
},
methods: {
load: function () {
load: function (page) {
var $vm = this;
tale.get({
url: '/admin/api/attaches',
data: {
page: page
},
success: function (data) {
$vm.attachPage = data.payload
},
Expand Down

0 comments on commit 8ce5bf7

Please sign in to comment.