mirror of
https://gitee.com/bootx/dax-pay-ui
synced 2026-08-11 23:25:33 +08:00
fix(payment): 修复商户对接配置页 PermCodes.Action 笔误致渲染崩溃
PermCodes 常量无 Action 顶级键,访问 .MANAGE 抛 Cannot read properties of undefined,导致页面渲染崩溃。改为正确的业务域引用 PermCodes.Merchant.Credential.MANAGE(merchant:credential:manage)。
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user