From acf8ea428f04e40522e1c452bc07a73380e133d5 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 24 Jun 2022 23:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF=E5=91=BD?= =?UTF-8?q?=E5=90=8D=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/web/controller/monitor/CacheController.java | 2 +- .../src/main/resources/templates/monitor/cache/cache.html | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java index 30ce4781..995ce8af 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/monitor/CacheController.java @@ -47,7 +47,7 @@ public class CacheController extends BaseController public String getCacheKeys(String fragment, String cacheName, ModelMap mmap) { mmap.put("cacheName", cacheName); - mmap.put("cacheKyes", cacheService.getCacheKeys(cacheName)); + mmap.put("cacheKeys", cacheService.getCacheKeys(cacheName)); return prefix + "/cache::" + fragment; } diff --git a/ruoyi-admin/src/main/resources/templates/monitor/cache/cache.html b/ruoyi-admin/src/main/resources/templates/monitor/cache/cache.html index ae3749b0..e56e7936 100644 --- a/ruoyi-admin/src/main/resources/templates/monitor/cache/cache.html +++ b/ruoyi-admin/src/main/resources/templates/monitor/cache/cache.html @@ -53,8 +53,8 @@ 操作 - - + + [[${stat.index + 1}]] [[${cacheKey}]] @@ -125,7 +125,7 @@ function getCacheKeys(cacheName, isMsg) { "fragment": 'fragment-cache-kyes' }, success: function(data) { - $("#cacheKyes").html(data); + $("#cacheKeys").html(data); $("#cacheName").val(_cacheName); if (isMsg) { $.modal.msgSuccess("刷新键名列表成功"); @@ -174,7 +174,7 @@ function clearCacheKey(cacheName, cacheKey) { function clearAll(){ $.get(prefix + "/clearAll", function(result) { if (result.code == web_status.SUCCESS) { - $.modal.msgSuccess("清理缓存成功") + $.modal.msgSuccess("清理全部缓存成功") } else { $.modal.msgError(result.msg); }