fix: 修复授权配置复制功能,无法复制已加密字段的问题

This commit is contained in:
xiaojunnuo
2025-08-09 18:11:20 +08:00
parent 1bdceeecf4
commit 221e068bac
2 changed files with 26 additions and 1 deletions
@@ -44,6 +44,20 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
},
rowHandle: {
width: 200,
buttons: {
copy: {
async click(ctx: any) {
const { row, index } = ctx;
await crudExpose.openCopy({
row: {
...row,
_copyFrom: row.id,
},
index: index,
});
},
},
},
},
columns: {
id: {