fix: 退款申请
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 7m19s

This commit is contained in:
luo
2026-08-05 16:36:08 +08:00
parent db9aaa7920
commit 34455a9f18
3 changed files with 22 additions and 31 deletions

View File

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