fix: 权限套餐列表卡片
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m38s

This commit is contained in:
luo
2026-08-05 16:12:20 +08:00
parent 1e740b1526
commit db9aaa7920

View File

@@ -395,19 +395,8 @@
const isAdminOrPlatform = computed( const isAdminOrPlatform = computed(
() => userInfo.value.user_type === 1 || userInfo.value.user_type === 2 () => userInfo.value.user_type === 1 || userInfo.value.user_type === 2
) )
// const isProductionMode = import.meta.env.MODE === 'production' const canUpdateUsedData = computed(() => hasAuth('package:update_used_data'))
const canUseAdjustmentInCurrentEnv = (permission: string) => { const canUpdateExpiresAt = computed(() => hasAuth('package:update_expires_at'))
// 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 createRefundDialogVisible = ref(false) const createRefundDialogVisible = ref(false)