feat:实现浏览页翻页功能

This commit is contained in:
2024-06-04 11:51:33 +08:00
parent d753e7cad4
commit cb13e5a22b
3 changed files with 182 additions and 110 deletions

View File

@@ -77,7 +77,7 @@ def view(bookid): # 接口
data = db.file.searchByid(bookid)
if len(data) == 0:
return abort(404)
return render_template("view.html", id=bookid, index=range(1, data[0][3]))
return render_template("view.html.j2", id=bookid, index=range(1, data[0][3]))
@page_bp.route("/upload", methods=["GET", "POST"]) # 文件上传