From 050fadbd8fb71b8d3ec36ee35982742d994e6188 Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 22 Dec 2025 20:49:04 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E7=B1=BB=E5=9E=8B=E4=B8=BAPUT=EF=BC=9B?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95=E6=95=B0=E6=8D=AE=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/rwa/product/components/edit.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/rwa/product/components/edit.vue b/src/views/rwa/product/components/edit.vue index 085fd12..ffd1e9d 100644 --- a/src/views/rwa/product/components/edit.vue +++ b/src/views/rwa/product/components/edit.vue @@ -13,7 +13,7 @@ const emit = defineEmits<{ (e: 'close'): void; }>(); -type Body = CommonType.TreatyBody; +type Body = CommonType.TreatyBody; const formInst = useTemplateRef('formInst'); const { data: categories } = safeClient( @@ -26,6 +26,7 @@ const { data: categories } = safeClient( ); const form = ref({ + id: props.data.id, name: props.data.name, code: props.data.code, categoryId: props.data.categoryId, @@ -47,7 +48,7 @@ function handleSubmit() { formInst.value?.validate(async errors => { if (!errors) { await safeClient( - client.api.admin.rwa.issuance.products.post({ + client.api.admin.rwa.issuance.products.put({ ...form.value }) );