From c7ec3d1c3692dd2fcc97986f7fac92f5e538666f Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Thu, 11 Jan 2024 10:50:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E9=85=8D=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=B7=E6=96=B0redis=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/device.js | 8 ++++++++ src/views/model/device/index.vue | 12 +++++++++++- src/views/model/tbserverinfo/index.vue | 1 - 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/api/model/device.js b/src/api/model/device.js index 39d144b..db5992e 100644 --- a/src/api/model/device.js +++ b/src/api/model/device.js @@ -91,4 +91,12 @@ export function selectDcBaseDeviceinfoMaxSort(){ url: '/model/dcBaseDeviceinfo/selectDcBaseDeviceinfoMaxSort', method: 'get' }); +} + +//清空redis缓存 +export function cleanRedisCache() { + return request({ + url: '/model/dcBaseDeviceinfo/cleanRedisCache', + method: 'post' + }); } \ No newline at end of file diff --git a/src/views/model/device/index.vue b/src/views/model/device/index.vue index 6d35126..d68f01f 100644 --- a/src/views/model/device/index.vue +++ b/src/views/model/device/index.vue @@ -146,6 +146,9 @@ 导出 + + 刷新redis缓存 + @@ -399,7 +402,7 @@ }