We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dfb7367 commit f80d509Copy full SHA for f80d509
1 file changed
templates/admin.html
@@ -66,7 +66,7 @@
66
style="text-align: center"
67
layout="prev, pager, next, sizes"
68
:page-size="paginate.page_size"
69
- @current-change="loginAdmin"
+ @current-change="updatePage"
70
@size-change="updateSize"
71
:total="paginate.total"
72
>
@@ -202,6 +202,10 @@
202
this.paginate.size = value;
203
this.loginAdmin();
204
},
205
+ updatePage: function (value) {
206
+ this.paginate.page = value;
207
+ this.loginAdmin();
208
+ },
209
deleteBanner: function (index) {
210
this.config.banners.splice(index, 1);
211
@@ -225,8 +229,7 @@
225
229
});
226
230
})
227
231
228
- loginAdmin: function (current_page = 1) {
- this.paginate.page = current_page;
232
+ loginAdmin: function () {
233
axios.post('', this.paginate, {
234
'headers': {
235
'pwd': this.pwd,
@@ -257,4 +260,4 @@
257
260
}
258
261
259
262
</script>
-</html>
263
+</html>
0 commit comments