feat: 更新 API 地址,添加新的类型定义,优化表单提交逻辑
This commit is contained in:
@@ -106,7 +106,6 @@ function handleSubmit(values: GenericObject) {
|
||||
<template #default="{ field }">
|
||||
<ui-input-label
|
||||
v-bind="field"
|
||||
type="number"
|
||||
inputmode="numeric"
|
||||
:label="t('asset.issue.apply.totalSupplyLimit')"
|
||||
:placeholder="t('asset.issue.apply.enterTotalSupplyLimit')"
|
||||
|
||||
@@ -40,7 +40,7 @@ function handleNext(values: GenericObject) {
|
||||
|
||||
async function handleSubmit(editions: RwaIssuanceProductBody["editions"]) {
|
||||
form.value.editions = editions;
|
||||
await client.api.rwa.issuance.products.bundle.post(form.value);
|
||||
await client.api.rwa.issuance.products.bundle_and_submit.post(form.value);
|
||||
form.value = { ...initialData };
|
||||
step.value = 3;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ const schema = toTypedSchema(yup.object({
|
||||
}));
|
||||
|
||||
function handleSubmit(values: GenericObject) {
|
||||
debugger;
|
||||
emit("submit", values.editions);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -4,7 +4,6 @@ import { client, safeClient } from "@/api";
|
||||
import Category from "./components/category.vue";
|
||||
|
||||
const [query] = useResetRef<AvailableSubscriptionBody>({
|
||||
status: "open",
|
||||
pageIndex: 1,
|
||||
pageSize: 20,
|
||||
categoryId: "",
|
||||
|
||||
Reference in New Issue
Block a user