From fe68bf722665f4e418128e417d269c287dd3635c Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Sun, 1 Dec 2024 20:22:19 +0800 Subject: [PATCH] update --- web/admin/__init__.py | 3 ++- web/static/app/public.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/admin/__init__.py b/web/admin/__init__.py index c9bc598fd..72e447af6 100644 --- a/web/admin/__init__.py +++ b/web/admin/__init__.py @@ -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 # 设置模板全局变量 diff --git a/web/static/app/public.js b/web/static/app/public.js index 18261a3fe..4ace1649f 100755 --- a/web/static/app/public.js +++ b/web/static/app/public.js @@ -1140,7 +1140,7 @@ function getPanelList(){ var con =''; $.post("/setting/get_panel_list",function(rdata){ for(var i=0; i\ + con +='

\ '+rdata[i].title+'\ \

';