fix(payment): 修复商户对接配置页 PermCodes.Action 笔误致渲染崩溃

PermCodes 常量无 Action 顶级键,访问 .MANAGE 抛 Cannot read properties of undefined,导致页面渲染崩溃。改为正确的业务域引用 PermCodes.Merchant.Credential.MANAGE(merchant:credential:manage)。
This commit is contained in:
DaxPay Dev
2026-07-19 15:38:51 +08:00
parent 89ddc1d6fd
commit 7aa6c0945d

View File

@@ -241,7 +241,7 @@
<template #extra>
<template v-if="!isEditing">
<a-button v-if="hasPermission(PermCodes.Action.MANAGE)" type="primary" @click="handleEdit">{{
<a-button v-if="hasPermission(PermCodes.Merchant.Credential.MANAGE)" type="primary" @click="handleEdit">{{
$t('common.edit')
}}</a-button>
</template>
@@ -249,7 +249,7 @@
<a-space>
<a-button @click="handleCancel">{{ $t('common.cancelText') }}</a-button>
<a-button
v-if="hasPermission(PermCodes.Action.MANAGE)"
v-if="hasPermission(PermCodes.Merchant.Credential.MANAGE)"
type="primary"
:loading="saving"
@click="handleSave"