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;
});
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'
});
}

View File

@@ -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('拒绝成功');
}
});
}