From bf6aa155050ee206f38f5896b45e79aad13dd813 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Thu, 14 Nov 2024 15:00:30 +0800 Subject: [PATCH] Update crontab.js --- web/static/app/crontab.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/static/app/crontab.js b/web/static/app/crontab.js index fe21632c4..87d5e4866 100755 --- a/web/static/app/crontab.js +++ b/web/static/app/crontab.js @@ -85,8 +85,8 @@ function getCronData(page){ $.post("/crontab/list?p="+page,'', function(rdata){ layer.close(load); var cbody = ""; - if(rdata == ""){ - cbody=""+lan.crontab.task_empty+""; + if(rdata.data.length == 0){ + cbody="当前没有计划任务"; } else { for(var i=0;i