Skip to content

Commit f80d509

Browse files
authored
fix:error
1 parent dfb7367 commit f80d509

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

templates/admin.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
style="text-align: center"
6767
layout="prev, pager, next, sizes"
6868
:page-size="paginate.page_size"
69-
@current-change="loginAdmin"
69+
@current-change="updatePage"
7070
@size-change="updateSize"
7171
:total="paginate.total"
7272
>
@@ -202,6 +202,10 @@
202202
this.paginate.size = value;
203203
this.loginAdmin();
204204
},
205+
updatePage: function (value) {
206+
this.paginate.page = value;
207+
this.loginAdmin();
208+
},
205209
deleteBanner: function (index) {
206210
this.config.banners.splice(index, 1);
207211
},
@@ -225,8 +229,7 @@
225229
});
226230
})
227231
},
228-
loginAdmin: function (current_page = 1) {
229-
this.paginate.page = current_page;
232+
loginAdmin: function () {
230233
axios.post('', this.paginate, {
231234
'headers': {
232235
'pwd': this.pwd,
@@ -257,4 +260,4 @@
257260
}
258261
})
259262
</script>
260-
</html>
263+
</html>

0 commit comments

Comments
 (0)