fix(card-c-trip-info): 修复删除携程卡信息时的错误处理
- 捕获 deleteOne 函数中的错误并输出到控制台 - 修改错误通知的 id 为 cTripAccountNotice
This commit is contained in:
@@ -337,9 +337,10 @@ const reset = () => {
|
||||
const deleteOne = async (id: string) => {
|
||||
try {
|
||||
await apiClient.apiCardInfoCTripAccountDeleteDelete(id);
|
||||
} catch {
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
Notification.error({
|
||||
id: 'walmartAccountNotice',
|
||||
id: 'cTripAccountNotice',
|
||||
content: '删除携程卡失败',
|
||||
closable: true
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user