From 7e2851029209d5770d6342ce61fe644f6b78ae19 Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 22 Dec 2025 02:48:15 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=EF=BC=8C=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=88=97=E9=85=8D=E7=BD=AE=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E9=93=B6=E8=A1=8C=E5=8D=A1ID=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/api/client.ts | 18 ++++++++++++------ src/views/withdraw/approved/index.vue | 6 +----- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/service/api/client.ts b/src/service/api/client.ts index fba4a73..181a013 100644 --- a/src/service/api/client.ts +++ b/src/service/api/client.ts @@ -57,12 +57,18 @@ export function safeClient( isPending.value = false; }); - if (res.error && res.status === 418) { - if (!options.silent) { - const msg = $t((res.error as any).value.code, { - ...(res.error as any).value.context - }); - window.$message?.create(msg, { + if (res.error) { + if (res.status === 418) { + if (!options.silent) { + const msg = $t((res.error as any).value.code, { + ...(res.error as any).value.context + }); + window.$message?.create(msg, { + type: 'error' + }); + } + } else if (!options.silent) { + window.$message?.create((res.error as any).message || 'Error', { type: 'error' }); } diff --git a/src/views/withdraw/approved/index.vue b/src/views/withdraw/approved/index.vue index a5de19d..f448c1a 100644 --- a/src/views/withdraw/approved/index.vue +++ b/src/views/withdraw/approved/index.vue @@ -52,10 +52,6 @@ const columns: TableBaseColumns = [ return WithdrawMethodEnum[row.withdrawMethod as keyof typeof WithdrawMethodEnum]; } }, - { - title: '银行卡ID', - key: 'bankAccountId' - }, { title: '手续费', key: 'fee', @@ -119,7 +115,7 @@ const columns: TableBaseColumns = [ }) ); tableInst.value?.reload(); - message.success('删除成功'); + message.success('拒绝成功'); } }); }