feat: 更新银行卡管理功能,添加银行卡和删除银行卡的逻辑,优化API请求方式
This commit is contained in:
@@ -10,14 +10,14 @@ import IssuePeriod from "./issue-period.vue";
|
||||
|
||||
const { t } = useI18n();
|
||||
const now = useNow();
|
||||
const { data: categories = [] } = await safeClient(client.api.rwa.issuance.categories.get());
|
||||
const { data: categories } = await safeClient(() => client.api.rwa.issuance.categories.get());
|
||||
|
||||
const step = useRouteQuery<number>("step", 1, { transform: v => Number(v), mode: "push" });
|
||||
const initialData: RwaIssuanceProductBody = {
|
||||
product: {
|
||||
name: "",
|
||||
code: "",
|
||||
categoryId: categories!.length > 0 ? categories![0].id : "",
|
||||
categoryId: categories.value!.length > 0 ? categories.value![0].id : "",
|
||||
},
|
||||
editions: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user