This commit is contained in:
cdle
2023-06-14 23:29:48 +08:00
parent 73c678755b
commit dc77eee1be
5 changed files with 8 additions and 4 deletions
+4
View File
@@ -183,6 +183,10 @@ func initWebPluginList() {
rr.Tab3 = len(tab3)
}
rr.Total = len(list)
if len(list) == 0 {
ctx.JSON(200, rr)
return
}
if last := (rr.Total + pageSize - 1) / pageSize; current > last {
current = last
}