Fix Bug #571: 修复检验申请撤回时双重错误提示

根因:响应拦截器已对非200响应(code=500等)显示ElMessage错误提示,
但handleWithdraw的catch块再次调用proxy.$modal.msgError显示相同错误,
导致用户看到两个红色错误弹窗。

修复:将handleWithdraw和handleDelete的catch块改为静默处理,
与examineApplication.vue的handleRecall模式一致——响应拦截器已统一处理错误提示。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-22 12:37:26 +08:00
parent fd0fe29e54
commit 310847eae4

View File

@@ -615,8 +615,8 @@ const handleDelete = async (row) => {
} else {
proxy.$modal?.msgError?.(res?.msg || '删除失败');
}
} catch (e) {
proxy.$modal?.msgError?.(e.message || '删除异常');
} catch {
// 响应拦截器已处理错误提示,此处静默
}
};
@@ -640,8 +640,8 @@ const handleWithdraw = async (row) => {
} else {
proxy.$modal?.msgError?.(res?.msg || '撤回失败');
}
} catch (e) {
proxy.$modal?.msgError?.(e.message || '撤回异常');
} catch {
// 响应拦截器已处理错误提示,此处静默
}
};