From d6d70cb1f958a004d8523b4fd5f3bd6df4f08ba2 Mon Sep 17 00:00:00 2001 From: midoks Date: Sun, 17 Feb 2019 15:06:54 +0800 Subject: [PATCH] u --- class/core/files_api.py | 1 - route/static/app/public.js | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/class/core/files_api.py b/class/core/files_api.py index 7dfbb12e2..020f3bc3e 100755 --- a/class/core/files_api.py +++ b/class/core/files_api.py @@ -224,7 +224,6 @@ class files_api: # 获取进度 def getSpeedApi(self): data = public.getSpeed() - print data return public.returnJson(True, '已清空回收站!', data) def closeRecycleBinApi(self): diff --git a/route/static/app/public.js b/route/static/app/public.js index 79cb95f5e..7ecf8383d 100755 --- a/route/static/app/public.js +++ b/route/static/app/public.js @@ -929,7 +929,8 @@ function getSpeed(sele){ if(!$(sele)) { return; } - $.get('/files/get_speed',function(speed){ + $.get('/files/get_speed',function(data){ + var speed = data['data']; if(speed.title === null){ return; }