Skip to content

Commit

Permalink
🐛 fixed pages limit param
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Oct 7, 2018
1 parent 97128f0 commit 2e3c40f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/main/resources/templates/admin/articles.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h3 class="panel-title">文章管理</h3>
<option value="draft">草稿</option>
</select>
<button type="button" class="btn btn-success waves-effect waves-light m-l-10"
@click="load()">查询
@click="load(1)">查询
</button>
</form>
</div>
Expand Down Expand Up @@ -126,7 +126,7 @@ <h3 class="panel-title">文章管理</h3>
},
mounted: function () {
this.loadOnce();
this.load();
this.load(1);
},
methods: {
loadOnce: function(){
Expand Down Expand Up @@ -168,7 +168,7 @@ <h3 class="panel-title">文章管理</h3>
success: function (result) {
if (result && result.success) {
tale.alertOk('文章删除成功');
$vm.load();
$vm.load(1);
} else {
tale.alertError(result.msg || '文章删除失败');
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/templates/admin/attaches.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h3 class="panel-title">附件管理</h3>
vueLoding = this.$loading.show();
},
mounted: function () {
this.load();
this.load(1);
},
methods: {
load: function (page) {
Expand Down Expand Up @@ -168,7 +168,7 @@ <h3 class="panel-title">附件管理</h3>
success: function (result) {
if (result && result.success) {
tale.alertOk('附件删除成功');
$vm.load();
$vm.load(1);
} else {
tale.alertError(result.msg || '附件删除失败');
}
Expand Down Expand Up @@ -200,7 +200,7 @@ <h3 class="panel-title">附件管理</h3>
init: function () {
this.on('queuecomplete', function (files) {
tale.alertOk('上传成功');
vm.load();
vm.load(1);
});
this.on('error', function (a, errorMessage, result) {
if (!result.success && result.msg) {
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/templates/admin/pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ <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/pages',
Expand All @@ -118,7 +118,7 @@ <h3 class="panel-title">页面管理</h3>
success: function (result) {
if (result && result.success) {
tale.alertOk('页面删除成功');
$vm.load();
$vm.load(1);
} else {
tale.alertError(result.msg || '页面删除失败');
}
Expand Down

0 comments on commit 2e3c40f

Please sign in to comment.