diff --git a/src/views/asset-management/asset-information/components/PackageListCard.vue b/src/views/asset-management/asset-information/components/PackageListCard.vue index d6d3907..da53cda 100644 --- a/src/views/asset-management/asset-information/components/PackageListCard.vue +++ b/src/views/asset-management/asset-information/components/PackageListCard.vue @@ -395,19 +395,8 @@ const isAdminOrPlatform = computed( () => userInfo.value.user_type === 1 || userInfo.value.user_type === 2 ) - // const isProductionMode = import.meta.env.MODE === 'production' - const canUseAdjustmentInCurrentEnv = (permission: string) => { - // if (isProductionMode) { - // userInfo.value.user_type === 2 && - return hasAuth(permission) - // } - - // return userInfo.value.user_type === 1 - } - const canUpdateUsedData = computed(() => canUseAdjustmentInCurrentEnv('package:update_used_data')) - const canUpdateExpiresAt = computed(() => - canUseAdjustmentInCurrentEnv('package:update_expires_at') - ) + const canUpdateUsedData = computed(() => hasAuth('package:update_used_data')) + const canUpdateExpiresAt = computed(() => hasAuth('package:update_expires_at')) // 退款申请对话框 const createRefundDialogVisible = ref(false)