From 6cc6aa7200e8897bd4e65f4591da454199ebc108 Mon Sep 17 00:00:00 2001 From: Seven Date: Wed, 7 Jan 2026 17:59:45 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20@riwa/api-types=20?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E8=87=B3=200.0.84=EF=BC=8C=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E7=9B=B8=E5=85=B3=E7=BB=84=E4=BB=B6=E7=9A=84=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=92=8C=20API=20=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ .../tokenization/product/components/lock-options.vue | 4 ++-- src/views/tokenization/product/index.vue | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 2dc8033..14882cc 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "@better-scroll/core": "2.5.1", "@elysiajs/eden": "^1.4.5", "@iconify/vue": "5.0.0", - "@riwa/api-types": "http://192.168.1.17:9527/api/riwa-eden-0.0.82.tgz", + "@riwa/api-types": "http://192.168.1.17:9527/api/riwa-eden-0.0.84.tgz", "@sa/axios": "workspace:*", "@sa/color": "workspace:*", "@sa/hooks": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 957f1a8..d1db612 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: 5.0.0 version: 5.0.0(vue@3.5.25(typescript@5.9.3)) '@riwa/api-types': - specifier: http://192.168.1.17:9527/api/riwa-eden-0.0.82.tgz - version: '@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.82.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))' + specifier: http://192.168.1.17:9527/api/riwa-eden-0.0.84.tgz + version: '@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.84.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))' '@sa/axios': specifier: workspace:* version: link:packages/axios @@ -1083,9 +1083,9 @@ packages: '@quansync/fs@0.1.6': resolution: {integrity: sha512-zoA8SqQO11qH9H8FCBR7NIbowYARIPmBz3nKjgAaOUDi/xPAAu1uAgebtV7KXHTc6CDZJVRZ1u4wIGvY5CWYaw==} - '@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.82.tgz': - resolution: {tarball: http://192.168.1.17:9527/api/riwa-eden-0.0.82.tgz} - version: 0.0.82 + '@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.84.tgz': + resolution: {tarball: http://192.168.1.17:9527/api/riwa-eden-0.0.84.tgz} + version: 0.0.84 peerDependencies: '@elysiajs/eden': ^1.4.5 @@ -5080,7 +5080,7 @@ snapshots: dependencies: quansync: 0.3.0 - '@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.82.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': + '@riwa/eden@http://192.168.1.17:9527/api/riwa-eden-0.0.84.tgz(@elysiajs/eden@1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)))': dependencies: '@elysiajs/eden': 1.4.5(elysia@1.4.19(@sinclair/typebox@0.34.41)(exact-mirror@0.2.5(@sinclair/typebox@0.34.41))(file-type@21.1.1)(openapi-types@12.1.3)(typescript@5.9.3)) diff --git a/src/views/tokenization/product/components/lock-options.vue b/src/views/tokenization/product/components/lock-options.vue index ae7fe69..55014c2 100644 --- a/src/views/tokenization/product/components/lock-options.vue +++ b/src/views/tokenization/product/components/lock-options.vue @@ -13,7 +13,7 @@ interface LockOption { const props = defineProps<{ options: LockOption[]; - productId: string; + id: string; }>(); const emit = defineEmits<{ @@ -45,7 +45,7 @@ function handleSubmit() { formRef.value?.validate(async errors => { if (!errors) { await safeClient(() => - client.api.admin.rwa.tokenization_schema.config({ productId: props.productId }).put({ + client.api.admin.rwa.tokenization_schema({ id: props.id }).lock_options.patch({ lockOptions: lockOptions.value }) ); diff --git a/src/views/tokenization/product/index.vue b/src/views/tokenization/product/index.vue index cb2fc53..7699f40 100644 --- a/src/views/tokenization/product/index.vue +++ b/src/views/tokenization/product/index.vue @@ -12,7 +12,7 @@ const tableInst = useTemplateRef('tableInst'); const fetchData: TableFetchData = ({ pagination, filter }) => { return safeClient(() => - client.api.admin.rwa.tokenization_schema.configs.get({ + client.api.admin.rwa.tokenization_schema.get({ query: { ...pagination, ...filter @@ -104,7 +104,7 @@ const columns: TableBaseColumns = [ size: 'small', visible: row.enabled === true, onClick: async () => { - await safeClient(client.api.admin.rwa.tokenization_schema.disable({ productId: row.productId }).delete()); + await safeClient(client.api.admin.rwa.tokenization_schema({ id: row.id }).disable.patch()); window.$message?.success('资产化已关闭。'); tableInst.value?.reload(); } @@ -134,7 +134,7 @@ function handleUpdateLockOptions(row: any) { content: () => h(LockOptions, { options: row.lockOptions, - productId: row.productId, + id: row.id, onClose: () => { dialogInstance.destroy(); tableInst.value?.reload();