From 8bf6c06889f72946615a55dff71ca1ee3f152656 Mon Sep 17 00:00:00 2001 From: Seven Date: Wed, 17 Dec 2025 23:57:13 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20API=20=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=EF=BC=8C=E6=B7=BB=E5=8A=A0=E6=96=B0=E7=9A=84=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89=EF=BC=8C=E4=BC=98=E5=8C=96=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E6=8F=90=E4=BA=A4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- src/api/types.ts | 10 +++++++--- src/views/issue/issuing-apply/base.vue | 1 - src/views/issue/issuing-apply/index.vue | 2 +- src/views/issue/issuing-apply/issue-period.vue | 1 + src/views/market/index.vue | 1 - 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.env b/.env index 9ae1e59..c5d1ca7 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -VITE_API_URL=http://192.168.1.54:9528 \ No newline at end of file +VITE_API_URL=http://192.168.1.36:9527 \ No newline at end of file diff --git a/src/api/types.ts b/src/api/types.ts index b4d8cde..0d085ae 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -11,6 +11,10 @@ export type TreatyQuery = T extends (...args: any[]) => any ? NonNullable[0]>["query"]> : never; +export type TreatyBody = T extends (...args: any[]) => any + ? NonNullable[0]> + : never; + export type DepositFiatData = Treaty.Data; export type BalancesData = Treaty.Data; @@ -22,17 +26,17 @@ export type WithdrawBody = Omit[0], export type UserProfileData = Treaty.Data["userProfile"]; -export type UpdateUserProfileBody = TreatyQuery; +export type UpdateUserProfileBody = TreatyBody; export type RwaIssuanceProductsData = Treaty.Data; -export type RwaIssuanceProductBody = TreatyQuery; +export type RwaIssuanceProductBody = TreatyBody; export type RwaIssuanceCategoriesData = Treaty.Data; export type BankAccountsData = Treaty.Data; -export type BankAccountBody = TreatyQuery; +export type BankAccountBody = TreatyBody; export type BankAccountData = Treaty.Data; diff --git a/src/views/issue/issuing-apply/base.vue b/src/views/issue/issuing-apply/base.vue index ed073bc..169557e 100644 --- a/src/views/issue/issuing-apply/base.vue +++ b/src/views/issue/issuing-apply/base.vue @@ -106,7 +106,6 @@ function handleSubmit(values: GenericObject) {