mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
# 设置模板全局变量
|
||||
|
||||
Reference in New Issue
Block a user