From 1c17970b981f0987c506744ee6b2283fd5e40493 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 2 Sep 2024 01:02:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=BF=80=E6=B4=BB=E4=BB=85=E9=99=90?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/certd-client/src/components/vip-button/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/ui/certd-client/src/components/vip-button/index.vue b/packages/ui/certd-client/src/components/vip-button/index.vue index f8b7a6b9..7c236bf4 100644 --- a/packages/ui/certd-client/src/components/vip-button/index.vue +++ b/packages/ui/certd-client/src/components/vip-button/index.vue @@ -110,6 +110,10 @@ const computedSiteId = computed(() => settingStore.installInfo?.siteId); const [modal, contextHolder] = Modal.useModal(); function openUpgrade() { + if (!userStore.isAdmin) { + message.info("仅限管理员操作"); + return; + } const placeholder = "请输入激活码"; modal.confirm({ title: "升级/续期专业版",