fix: 修改错误提示信息,更新表格列配置,移除银行卡ID列

This commit is contained in:
2025-12-22 02:48:15 +07:00
parent a810c21c1f
commit 7e28510292
2 changed files with 13 additions and 11 deletions

View File

@@ -57,12 +57,18 @@ export function safeClient<T, E>(
isPending.value = false; isPending.value = false;
}); });
if (res.error && res.status === 418) { if (res.error) {
if (!options.silent) { if (res.status === 418) {
const msg = $t((res.error as any).value.code, { if (!options.silent) {
...(res.error as any).value.context const msg = $t((res.error as any).value.code, {
}); ...(res.error as any).value.context
window.$message?.create(msg, { });
window.$message?.create(msg, {
type: 'error'
});
}
} else if (!options.silent) {
window.$message?.create((res.error as any).message || 'Error', {
type: 'error' type: 'error'
}); });
} }

View File

@@ -52,10 +52,6 @@ const columns: TableBaseColumns = [
return WithdrawMethodEnum[row.withdrawMethod as keyof typeof WithdrawMethodEnum]; return WithdrawMethodEnum[row.withdrawMethod as keyof typeof WithdrawMethodEnum];
} }
}, },
{
title: '银行卡ID',
key: 'bankAccountId'
},
{ {
title: '手续费', title: '手续费',
key: 'fee', key: 'fee',
@@ -119,7 +115,7 @@ const columns: TableBaseColumns = [
}) })
); );
tableInst.value?.reload(); tableInst.value?.reload();
message.success('删除成功'); message.success('拒绝成功');
} }
}); });
} }