From 64843097328d75719c172bf112a11aa50cb4cb53 Mon Sep 17 00:00:00 2001 From: Seven Date: Tue, 20 Jan 2026 02:37:11 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=88=87=E6=8D=A2=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A0=E9=99=A4=E6=93=8D=E4=BD=9C=E4=B8=BA?= =?UTF-8?q?=E5=90=AF=E7=94=A8/=E5=81=9C=E7=94=A8=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ src/views/product/index.vue | 4 +++- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 0a1f41a..b8a3a35 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,7 @@ "@better-scroll/core": "2.5.1", "@elysiajs/eden": "^1.4.5", "@iconify/vue": "5.0.0", - "@riwa/api-types": "http://192.168.1.2:9538/api/capp-eden-0.0.30.tgz", + "@riwa/api-types": "http://192.168.1.2:9538/api/capp-eden-0.0.32.tgz", "@sa/axios": "workspace:*", "@sa/color": "workspace:*", "@sa/hooks": "workspace:*", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4c8127b..a0f64b5 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.2:9538/api/capp-eden-0.0.30.tgz - version: '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.30.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.2:9538/api/capp-eden-0.0.32.tgz + version: '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.32.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 @@ -496,9 +496,9 @@ packages: '@borewit/text-codec@0.1.1': resolution: {integrity: sha512-5L/uBxmjaCIX5h8Z+uu+kA9BQLkc/Wl06UGR5ajNRxu+/XjonB5i8JpgFMrPj3LXTCPA0pv8yxUvbUi+QthGGA==} - '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.30.tgz': - resolution: {tarball: http://192.168.1.2:9538/api/capp-eden-0.0.30.tgz} - version: 0.0.30 + '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.32.tgz': + resolution: {tarball: http://192.168.1.2:9538/api/capp-eden-0.0.32.tgz} + version: 0.0.32 peerDependencies: '@elysiajs/eden': ^1.4.6 @@ -4871,7 +4871,7 @@ snapshots: '@borewit/text-codec@0.1.1': {} - '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.30.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)))': + '@capp/eden@http://192.168.1.2:9538/api/capp-eden-0.0.32.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/product/index.vue b/src/views/product/index.vue index fba2ef3..e3bee44 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -119,7 +119,9 @@ const columns: TableBaseColumns = [ positiveText: '确认', negativeText: '取消', onPositiveClick: async () => { - await safeClient(() => client.api.admin.subscription.products({ productId: row.id as string }).delete()); + await safeClient(() => + client.api.admin.subscription.products({ productId: row.id as string }).switchActive.post() + ); message.success('操作成功'); tableInst.value?.reload(); }