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 }) );