diff --git a/route/dashboard.py b/route/dashboard.py index 14ca0c09f..b8e585b4a 100644 --- a/route/dashboard.py +++ b/route/dashboard.py @@ -49,7 +49,7 @@ def code(): @dashboard.route("/check_login") def checkLogin(): - return render_template('default/login.html') + return "true" @dashboard.route("/login") diff --git a/static/js/public.js b/static/js/public.js index fd168b0b6..e45c4aefd 100755 --- a/static/js/public.js +++ b/static/js/public.js @@ -1547,7 +1547,7 @@ function tasklist(a){ //检查登陆状态 function check_login(){ - $.post('/ajax?action=CheckLogin',{},function(rdata){ + $.post('/check_login',{},function(rdata){ if(rdata === true) return; }); }