From 345876def4f7599aeed350d99f74f3a29da8df49 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 5 Dec 2018 11:22:38 +0800 Subject: [PATCH] Update soft.js --- static/js/soft.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/static/js/soft.js b/static/js/soft.js index 2dff5a5ef..a33f0df58 100755 --- a/static/js/soft.js +++ b/static/js/soft.js @@ -306,16 +306,7 @@ function toIndexDisplay(name, version, coexist) { if (rdata.status) { layer.msg(rdata.msg, { icon: 1 }) } - }) -} - -//刷新缓存 -function flush_cache() { - var loadT = layer.msg(lan.soft.get_list, { icon: 16, time: 0, shade: [0.3, '#000'] }) - $.post('/plugins?action=flush_cache', {}, function(rdata) { - layer.close(loadT) - layer.msg(rdata.msg, { icon: rdata.status ? 1 : 2 }); - }); + },'json'); } function indexListHtml(callback){ @@ -380,7 +371,6 @@ function indexListHtml(callback){ if (typeof callback=='function'){ callback(); } - },'json'); }