From d4d8426258cc87d6ed757e374080b2f84cefc01d Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 5 Nov 2018 23:47:37 +0800 Subject: [PATCH] u --- route/files.py | 2 +- static/js/public.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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');