fix: 修改错误提示信息,更新表格列配置,移除银行卡ID列
This commit is contained in:
@@ -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'
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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('拒绝成功');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user