From 1e740b1526d262f9d598aae5320dc7248ad5252e Mon Sep 17 00:00:00 2001 From: luo Date: Wed, 5 Aug 2026 15:55:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9D=83=E9=99=90=E5=A5=97=E9=A4=90?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../asset-information/components/PackageListCard.vue | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/views/asset-management/asset-information/components/PackageListCard.vue b/src/views/asset-management/asset-information/components/PackageListCard.vue index f61adf6..d6d3907 100644 --- a/src/views/asset-management/asset-information/components/PackageListCard.vue +++ b/src/views/asset-management/asset-information/components/PackageListCard.vue @@ -395,13 +395,14 @@ const isAdminOrPlatform = computed( () => userInfo.value.user_type === 1 || userInfo.value.user_type === 2 ) - const isProductionMode = import.meta.env.MODE === 'production' + // const isProductionMode = import.meta.env.MODE === 'production' const canUseAdjustmentInCurrentEnv = (permission: string) => { - if (isProductionMode) { - return userInfo.value.user_type === 2 && hasAuth(permission) - } + // if (isProductionMode) { + // userInfo.value.user_type === 2 && + return hasAuth(permission) + // } - return userInfo.value.user_type === 1 + // return userInfo.value.user_type === 1 } const canUpdateUsedData = computed(() => canUseAdjustmentInCurrentEnv('package:update_used_data')) const canUpdateExpiresAt = computed(() =>