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

This commit is contained in:
luo
2026-08-05 15:55:56 +08:00
parent 81d52892f5
commit 1e740b1526

View File

@@ -395,13 +395,14 @@
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 isProductionMode = import.meta.env.MODE === 'production'
const canUseAdjustmentInCurrentEnv = (permission: string) => { const canUseAdjustmentInCurrentEnv = (permission: string) => {
if (isProductionMode) { // if (isProductionMode) {
return userInfo.value.user_type === 2 && hasAuth(permission) // 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 canUpdateUsedData = computed(() => canUseAdjustmentInCurrentEnv('package:update_used_data'))
const canUpdateExpiresAt = computed(() => const canUpdateExpiresAt = computed(() =>