From b0707739fdfbae3d78db4efd3f180db05c4e4164 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Mon, 28 Jul 2025 18:29:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=E7=BA=BF=E4=B8=BA=E7=A9=BA=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/ui/certd-client/src/views/certd/pipeline/crud.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx b/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx index 6cf4e23c..9e11102d 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx +++ b/packages/ui/certd-client/src/views/certd/pipeline/crud.tsx @@ -14,6 +14,7 @@ import { useCertUpload } from "/@/views/certd/pipeline/cert-upload/use"; import GroupSelector from "/@/views/certd/pipeline/group/group-selector.vue"; import { useCertViewer } from "/@/views/certd/pipeline/use"; import { useI18n } from "/src/locales"; +import { GetDetail, GetObj } from "./api"; export default function ({ crudExpose, context: { groupDictRef, selectedRowKeys } }: CreateCrudOptionsProps): CreateCrudOptionsRet { const router = useRouter(); @@ -200,7 +201,9 @@ export default function ({ crudExpose, context: { groupDictRef, selectedRowKeys const { ui } = useUi(); // @ts-ignore let row = context[ui.tableColumn.row]; - row = cloneDeep(row); + const info = await GetDetail(row.id); + row = info.pipeline; + row.content = JSON.parse(row.content); row.title = row.title + "_copy"; await crudExpose.openCopy({ row: row,