fix: 修改错误提示信息,更新表格列配置,移除银行卡ID列
This commit is contained in:
@@ -57,7 +57,8 @@ export function safeClient<T, E>(
|
|||||||
isPending.value = false;
|
isPending.value = false;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.error && res.status === 418) {
|
if (res.error) {
|
||||||
|
if (res.status === 418) {
|
||||||
if (!options.silent) {
|
if (!options.silent) {
|
||||||
const msg = $t((res.error as any).value.code, {
|
const msg = $t((res.error as any).value.code, {
|
||||||
...(res.error as any).value.context
|
...(res.error as any).value.context
|
||||||
@@ -66,6 +67,11 @@ export function safeClient<T, E>(
|
|||||||
type: 'error'
|
type: 'error'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
} else if (!options.silent) {
|
||||||
|
window.$message?.create((res.error as any).message || 'Error', {
|
||||||
|
type: 'error'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
throw res.error;
|
throw res.error;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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('拒绝成功');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user