Skip to content

Commit

Permalink
fix:error
Browse files Browse the repository at this point in the history
  • Loading branch information
vastsa committed Dec 19, 2022
1 parent dfb7367 commit f80d509
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions templates/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
style="text-align: center"
layout="prev, pager, next, sizes"
:page-size="paginate.page_size"
@current-change="loginAdmin"
@current-change="updatePage"
@size-change="updateSize"
:total="paginate.total"
>
Expand Down Expand Up @@ -202,6 +202,10 @@
this.paginate.size = value;
this.loginAdmin();
},
updatePage: function (value) {
this.paginate.page = value;
this.loginAdmin();
},
deleteBanner: function (index) {
this.config.banners.splice(index, 1);
},
Expand All @@ -225,8 +229,7 @@
});
})
},
loginAdmin: function (current_page = 1) {
this.paginate.page = current_page;
loginAdmin: function () {
axios.post('', this.paginate, {
'headers': {
'pwd': this.pwd,
Expand Down Expand Up @@ -257,4 +260,4 @@
}
})
</script>
</html>
</html>

0 comments on commit f80d509

Please sign in to comment.