diff --git a/route/files.py b/route/files.py index 81ef8f7e4..79d263494 100644 --- a/route/files.py +++ b/route/files.py @@ -23,7 +23,7 @@ def GetDiskInfo(): return jsonify({'result': 'ok'}) -@files.route('/GetExecLog', methods=['POST']) +@files.route('/get_exec_log', methods=['POST']) def GetExecLog(): file = os.getcwd() + "/tmp/panelExec.log" v = public.getLastLine(file, 100) diff --git a/static/js/public.js b/static/js/public.js index 9334f274b..f2d7ebc6c 100755 --- a/static/js/public.js +++ b/static/js/public.js @@ -1385,7 +1385,7 @@ function messagebox() { //取执行日志 function execLog(){ - $.post('/files/GetExecLog',{},function(logs){ + $.post('/files/get_exec_log',{},function(logs){ var lbody = ''; $(".taskcon").html(lbody); var ob = document.getElementById('exec_log');