This commit is contained in:
Mr Chen
2024-12-01 20:22:19 +08:00
parent 1e4989857e
commit fe68bf7226
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -130,7 +130,8 @@ def requestAfter(response):
@app.errorhandler(404)
def page_unauthorized(error):
return render_template_string('404 not found', error_info=error), 404
return redirect('/', code=302)
# return render_template_string('404 not found', error_info=error), 404
# 设置模板全局变量