From 3f50400915cee2297e93ecc47c72a9647f2f7c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9A=93=E6=9C=88=E5=BD=92=E5=B0=98?= Date: Sat, 22 Feb 2025 23:46:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=BC=93=E5=AD=98=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=8C=E7=9B=91=E6=8E=A7=EF=BC=8C=E6=80=A7=E8=83=BD=E7=9B=91?= =?UTF-8?q?=E6=8E=A7=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE=E7=BA=A7=E6=9D=83?= =?UTF-8?q?=E9=99=90=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/monitor/cache/list.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/monitor/cache/list.vue b/src/views/monitor/cache/list.vue index b32d1db..4bbdbb9 100644 --- a/src/views/monitor/cache/list.vue +++ b/src/views/monitor/cache/list.vue @@ -13,6 +13,7 @@ link type="primary" size="large" + :disabled="!hasAuth('cache:btn:list')" :icon="useRenderIcon(Refresh)" @click="refreshCacheNames()" /> @@ -61,6 +62,7 @@ @@ -83,6 +85,7 @@ type="primary" link size="large" + :disabled="!hasAuth('cache:btn:list')" :icon="useRenderIcon(Refresh)" @click="refreshCacheKeys()" /> @@ -122,6 +125,7 @@ @@ -153,6 +157,7 @@ style="float: right; padding: 3px 0" link type="primary" + :disabled="!hasAuth('cache:btn:delete')" :icon="useRenderIcon(Delete)" >清理全部 @@ -207,6 +212,7 @@ import Document from "@iconify-icons/ep/document"; import Delete from "@iconify-icons/ep/delete"; import Refresh from "@iconify-icons/ep/refresh"; import { message } from "@/utils/message"; +import { hasAuth } from "@/utils/auth"; defineOptions({ name: "CacheList" });